diff options
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 |