diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-10-29 10:33:43 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-10-29 10:33:43 -0700 |
commit | c34f5e26c8f799b242dffbc0703109052428842d (patch) | |
tree | daf40da749e7bb32382db23049c2b12c65cd54ed /mu.arc.t | |
parent | 4ed7fd4b94a154df6ed65e15e64e3265b569116a (diff) | |
download | mu-c34f5e26c8f799b242dffbc0703109052428842d.tar.gz |
170 - stack frame support
When the current context has a 'default-scope', directly-addressed memory offsets off of it.
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 |