about summary refs log tree commit diff stats
path: root/045closure_name.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-13 10:03:26 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-13 10:03:26 -0700
commit5497090aa1e708c22cd240913a53dda32bb067aa (patch)
tree5a9eb76d447736a8199230c9386bd0a374b325dd /045closure_name.cc
parent01caf342d072115c27926b1a61c2fc75ab9fbee0 (diff)
downloadmu-5497090aa1e708c22cd240913a53dda32bb067aa.tar.gz
1363 - rename 'integer' to 'number'
..now that we support non-integers.
Diffstat (limited to '045closure_name.cc')
-rw-r--r--045closure_name.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/045closure_name.cc b/045closure_name.cc
index 4cb9411f..2c2f464c 100644
--- a/045closure_name.cc
+++ b/045closure_name.cc
@@ -9,23 +9,23 @@ recipe main [
   1:address:array:location/names:init-counter <- init-counter
 #?   $print [AAAAAAAAAAAAAAAA]
 #?   $print 1:address:array:location
-  2:integer/raw <- increment-counter 1:address:array:location/names:init-counter
-  3:integer/raw <- increment-counter 1:address:array:location/names:init-counter
+  2:number/raw <- increment-counter 1:address:array:location/names:init-counter
+  3:number/raw <- increment-counter 1:address:array:location/names:init-counter
 ]
 
 recipe init-counter [
   default-space:address:array:location <- new location:type, 30:literal
-  x:integer <- copy 23:literal
-  y:integer <- copy 3:literal  # variable that will be incremented
+  x:number <- copy 23:literal
+  y:number <- copy 3:literal  # variable that will be incremented
   reply default-space:address:array:location
 ]
 
 recipe increment-counter [
   default-space:address:array:location <- new space:literal, 30:literal
   0:address:array:location/names:init-counter <- next-ingredient  # outer space must be created by 'init-counter' above
-  y:integer/space:1 <- add y:integer/space:1, 1:literal  # increment
-  y:integer <- copy 234:literal  # dummy
-  reply y:integer/space:1
+  y:number/space:1 <- add y:number/space:1, 1:literal  # increment
+  y:number <- copy 234:literal  # dummy
+  reply y:number/space:1
 ]
 
 +name: recipe increment-counter is surrounded by init-counter