From 576990113273caed9a045380f1457adc1df6a5ee Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 23 Mar 2015 23:59:59 -0700 Subject: 968 --- cpp/018record | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/018record') 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 -- cgit 1.4.1-2-gfad0