diff options
Diffstat (limited to 'mu.arc.t')
-rw-r--r-- | mu.arc.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t index f3df4ea8..ee3a96f1 100644 --- a/mu.arc.t +++ b/mu.arc.t @@ -1366,4 +1366,18 @@ ((3 integer) <- copy (6 literal)))) (prn "F - convert-quotes can handle 'defer'")) +(reset) +(new-trace "set-default-scope") +(add-fns + '((main + ((default-scope scope-address) <- new (scope type) (1 literal)) + ((1 integer) <- copy (23 literal))))) +(let before Memory-in-use-until +;? (set dump-trace*) + (run 'main) +;? (prn memory*) + (if (~and (~is 23 memory*.1) + (is 23 (memory* (+ before 1)))) + (prn "F - default-scope implicitly modifies variable locations"))) + (reset) ; end file with this to persist the trace for the final test |