diff options
Diffstat (limited to '045closure_name.cc')
-rw-r--r-- | 045closure_name.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/045closure_name.cc b/045closure_name.cc index 3b62ba58..77389b3a 100644 --- a/045closure_name.cc +++ b/045closure_name.cc @@ -10,14 +10,12 @@ def main [ 2:number/raw <- increment-counter 1:address:array:location/names:new-counter 3:number/raw <- increment-counter 1:address:array:location/names:new-counter ] - def new-counter [ default-space:address:array:location <- new location:type, 30 x:number <- copy 23 y:number <- copy 3 # variable that will be incremented return default-space:address:array:location ] - def increment-counter [ default-space:address:array:location <- new location:type, 30 0:address:array:location/names:new-counter <- next-ingredient # outer space must be created by 'new-counter' above @@ -25,7 +23,6 @@ def increment-counter [ y:number <- copy 234 # dummy return y:number/space:1 ] - +name: lexically surrounding space for recipe increment-counter comes from new-counter +mem: storing 5 in location 3 |