mirror of
https://github.com/janet-lang/janet
synced 2026-09-15 22:01:21 +00:00
Flesh out support for userdata
Add file reading via file objects. Finalizer option for userdata.
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@
|
||||
(: i (+ 1 i)))
|
||||
(if (> len 0) (pop parts))
|
||||
(push parts end)
|
||||
(apply strcat start parts)))
|
||||
(apply string start parts)))
|
||||
|
||||
# Pretty print an object or struct
|
||||
(: print-struct (fn [start end s]
|
||||
@@ -28,7 +28,7 @@
|
||||
(: key (next s key)))
|
||||
(if (> (length parts) 0) (pop parts))
|
||||
(push parts end)
|
||||
(apply strcat start parts)))
|
||||
(apply string start parts)))
|
||||
|
||||
# Pretty
|
||||
|
||||
|
||||
Reference in New Issue
Block a user