diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-07-10 21:47:24 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-07-10 21:47:24 -0700 |
commit | a9a2f7db59c1efdeaf0a4db41778c35f97054d61 (patch) | |
tree | d558707243eeec902a2e26600acf0370451f0638 /045closure_name.cc | |
parent | 8b7917f05b653fa423f1b97e02147b2053227632 (diff) | |
download | mu-a9a2f7db59c1efdeaf0a4db41778c35f97054d61.tar.gz |
3108
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 |