From a9a2f7db59c1efdeaf0a4db41778c35f97054d61 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 10 Jul 2016 21:47:24 -0700 Subject: 3108 --- 045closure_name.cc | 3 --- 1 file changed, 3 deletions(-) (limited to '045closure_name.cc') 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 -- cgit 1.4.1-2-gfad0