From f344b250f6f062a1a1902bf69b23ebf9b565de0e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Sep 2016 15:01:51 -0700 Subject: 3395 --- html/046global.cc.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'html/046global.cc.html') diff --git a/html/046global.cc.html b/html/046global.cc.html index 11a22b6b..df8ba426 100644 --- a/html/046global.cc.html +++ b/html/046global.cc.html @@ -46,16 +46,16 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color :(scenario global_space) def main [ # pretend address:array:location; in practice we'll use new - 10:number <- copy 0 # refcount - 11:number <- copy 5 # length + 10:num <- copy 0 # refcount + 11:num <- copy 5 # length # pretend address:array:location; in practice we'll use new - 20:number <- copy 0 # refcount - 21:number <- copy 5 # length + 20:num <- copy 0 # refcount + 21:num <- copy 5 # length # actual start of this recipe - global-space:address:array:location <- copy 20/unsafe - default-space:address:array:location <- copy 10/unsafe - 1:number <- copy 23 - 1:number/space:global <- copy 24 + global-space:space <- copy 20/unsafe + default-space:space <- copy 10/unsafe + 1:num <- copy 23 + 1:num/space:global <- copy 24 ] # store to default space: 10 + (skip refcount and length) 2 + (index) 1 +mem: storing 23 in location 13 @@ -97,9 +97,9 @@ global_space = 0; :(scenario global_space_with_names) def main [ - global-space:address:array:location <- new location:type, 10 - x:number <- copy 23 - 1:number/space:global <- copy 24 + global-space:space <- new location:type, 10 + x:num <- copy 23 + 1:num/space:global <- copy 24 ] # don't complain about mixing numeric addresses and names $error: 0 -- cgit 1.4.1-2-gfad0