diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-23 23:59:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-24 20:59:00 -0700 |
commit | 576990113273caed9a045380f1457adc1df6a5ee (patch) | |
tree | 0add69eef41b3eca78191c59b7bfbfaaedd980d8 /cpp/018record | |
parent | 7fb56277f54b9e2625357a433b18f60e4493f34a (diff) | |
download | mu-576990113273caed9a045380f1457adc1df6a5ee.tar.gz |
968
Diffstat (limited to 'cpp/018record')
-rw-r--r-- | cpp/018record | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/018record b/cpp/018record index c19718cb..8acad726 100644 --- a/cpp/018record +++ b/cpp/018record @@ -21,8 +21,8 @@ recipe main [ +run: ingredient 0 is 1 +mem: location 1 is 34 +mem: location 2 is 35 -+mem: storing in location 3 -+mem: storing in location 4 ++mem: storing 34 in location 3 ++mem: storing 35 in location 4 :(before "End Globals") // Operator to look at fields of records. @@ -71,7 +71,7 @@ recipe main [ +run: its type is 1 +mem: location 13 is 35 +run: product 0 is 35 -+mem: storing in location 15 ++mem: storing 35 in location 15 :(before "End Mu Types Initialization") // A more complex record, containing another record. @@ -99,7 +99,7 @@ recipe main [ +run: its type is 1 +mem: location 14 is 36 +run: product 0 is 36 -+mem: storing in location 15 ++mem: storing 36 in location 15 :(before "End Globals") // To write to fields of records, you need their address. @@ -140,4 +140,4 @@ recipe main [ +run: ingredient 0 is 12 +run: ingredient 1 is 1 +run: address to copy is 13 -+mem: storing in location 15 ++mem: storing 13 in location 15 |