diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-10-10 15:04:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-10-10 15:08:19 -0700 |
commit | 630e93635c1fe2f0c2bde7823ddeb49fb48f6872 (patch) | |
tree | 9b2654e95e86072150986c137da6e2189c006518 /sys.arc.t | |
parent | 99ff20c8881af6407255129b0e4b83628c9da11f (diff) | |
download | mu-630e93635c1fe2f0c2bde7823ddeb49fb48f6872.tar.gz |
123 - experiment: build the reading flow around the *test* file
Diffstat (limited to 'sys.arc.t')
-rw-r--r-- | sys.arc.t | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sys.arc.t b/sys.arc.t deleted file mode 100644 index 3a5d0acf..00000000 --- a/sys.arc.t +++ /dev/null @@ -1,23 +0,0 @@ -(load "new.arc") - -(reset) -;? (prn memory*) -(if (~iso memory*.Root_custodian Allocator_start) - (prn "F - allocator initialized")) - -(reset) -(add-fns - '((main - ((x integer-address) <- new) - ((x integer-address deref) <- literal 34)))) -(run function*!main) -;? (prn memory*) -(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")) - -; other tests to express: -; no other function can increment the pointer -; no later clause can increment the pointer after this base clause -; multiple threads/routines can't call the allocator at once |