diff options
Diffstat (limited to 'new.arc.t')
-rw-r--r-- | new.arc.t | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/new.arc.t b/new.arc.t index 5266ea2d..8cb4bb41 100644 --- a/new.arc.t +++ b/new.arc.t @@ -2,10 +2,8 @@ (load "new.arc") (reset) -(add-fns - '((main))) -(run function*!main) -(if (~iso memory*!Root_allocator_pointer Allocator_start) +;? (prn memory*) +(if (~iso memory*.Root_custodian Allocator_start) (prn "F - allocator initialized")) (reset) @@ -15,7 +13,7 @@ ((x integer-address deref) <- literal 34)))) (run function*!main) ;? (prn memory*) -(if (~iso memory*!Root_allocator_pointer (+ Allocator_start 1)) +(if (~iso memory*.Root_custodian (+ Allocator_start 1)) (prn "F - 'new' increments allocator pointer")) (if (~iso memory*.Allocator_start 34) (prn "F - 'new' returns old location")) |