diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-04-23 22:11:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-04-24 00:35:50 -0700 |
commit | c9a5a7badacd8dba9b5d7cf683301c8ead4b1f12 (patch) | |
tree | 3062a12c4fda9757ef633e56f0abc8b8efbe594b /031container.cc | |
parent | 7bf9212fd47e505711cc0873d30456e3d793034d (diff) | |
download | mu-c9a5a7badacd8dba9b5d7cf683301c8ead4b1f12.tar.gz |
2862
Layers 0-29 are now a complete rudimentary platform except for pointers and indirection.
Diffstat (limited to '031container.cc')
-rw-r--r-- | 031container.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/031container.cc b/031container.cc index 32b38bc7..963afb68 100644 --- a/031container.cc +++ b/031container.cc @@ -51,6 +51,20 @@ def main [ ] +mem: storing 36 in location 17 +//: Products of recipes can include containers and exclusive containers, addresses and arrays. +:(scenario reply_container) +def main [ + 3:point <- f 2 +] +def f [ + 12:number <- next-ingredient + 13:number <- copy 35 + return 12:point/raw +] ++run: result 0 is [2, 35] ++mem: storing 2 in location 3 ++mem: storing 35 in location 4 + //: Containers can be checked for equality with a single instruction just like //: numbers, no matter how large they are. |