diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-02-20 20:32:05 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-02-20 20:32:05 -0800 |
commit | 7232de7061e8c370ad6cf76988489d78e269f8b9 (patch) | |
tree | 65e9ec1e7f935f3718718e836c79e0f0a7ff03ee /cpp/017and-record | |
parent | a4559f7287599a981a3b38a82b741f57d50e85c4 (diff) | |
download | mu-7232de7061e8c370ad6cf76988489d78e269f8b9.tar.gz |
802 - mu comments
Comments at end of line are still hacky; we just rely on the fact that excess ingredients do no harm. We'll need to be smarter when we get our first vararg recipe.
Diffstat (limited to 'cpp/017and-record')
-rw-r--r-- | cpp/017and-record | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/017and-record b/cpp/017and-record index f38b031f..359fd2bc 100644 --- a/cpp/017and-record +++ b/cpp/017and-record @@ -12,9 +12,9 @@ vector<type_number> b; b.push_back(boolean); Type[integer_boolean].elements.push_back(b); -// Records can be copied around with a single instruction just like integers, -// no matter how large they are. :(scenario copy_multiple_locations) +# Records can be copied around with a single instruction just like integers, +# no matter how large they are. recipe main [ 1:integer <- copy 34:literal 2:boolean <- copy 0:literal @@ -105,7 +105,7 @@ case GET_ADDRESS: { recipe main [ 12:integer <- copy 34:literal 13:boolean <- copy 0:literal - 15:integer <- get-address 12:integer-boolean, 1:offset + 15:integer <- get-address 12:integer-boolean, 1:offset # todo: product is an address ] +run: instruction 2 +run: ingredient 0 is 12 |