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