From 7232de7061e8c370ad6cf76988489d78e269f8b9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 20 Feb 2015 20:32:05 -0800 Subject: 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. --- cpp/017and-record | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/017and-record') 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 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 -- cgit 1.4.1-2-gfad0