diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 13:00:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 13:00:39 -0700 |
commit | a0331a9b0eab63a000dcd022fe605d124c573b8d (patch) | |
tree | 5c7403d16fd8c9d31ead65495eae84edf9cfc2e4 /046global.cc | |
parent | 760f683f2755038a1b0c16522f5001b889096aa5 (diff) | |
download | mu-a0331a9b0eab63a000dcd022fe605d124c573b8d.tar.gz |
3390
Diffstat (limited to '046global.cc')
-rw-r--r-- | 046global.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/046global.cc b/046global.cc index f85611e1..652d025f 100644 --- a/046global.cc +++ b/046global.cc @@ -11,15 +11,15 @@ :(scenario global_space) def main [ - # pretend address:array:location; in practice we'll use new + # pretend address:@:location; in practice we'll use new 10:num <- copy 0 # refcount 11:num <- copy 5 # length - # pretend address:array:location; in practice we'll use new + # pretend address:@:location; in practice we'll use new 20:num <- copy 0 # refcount 21:num <- copy 5 # length # actual start of this recipe - global-space:&:array:location <- copy 20/unsafe - default-space:&:array:location <- copy 10/unsafe + global-space:&:@:location <- copy 20/unsafe + default-space:&:@:location <- copy 10/unsafe 1:num <- copy 23 1:num/space:global <- copy 24 ] @@ -43,7 +43,7 @@ global_space = 0; :(after "Begin Preprocess write_memory(x, data)") if (x.name == "global-space") { if (!scalar(data) || !is_space(x)) - raise << maybe(current_recipe_name()) << "'global-space' should be of type address:array:location, but tried to write '" << to_string(x.type) << "'\n" << end(); + raise << maybe(current_recipe_name()) << "'global-space' should be of type address:@:location, but tried to write '" << to_string(x.type) << "'\n" << end(); if (Current_routine->global_space) raise << "routine already has a global-space; you can't over-write your globals" << end(); Current_routine->global_space = data.at(0); @@ -63,7 +63,7 @@ if (x.name == "global-space") { :(scenario global_space_with_names) def main [ - global-space:&:array:location <- new location:type, 10 + global-space:&:@:location <- new location:type, 10 x:num <- copy 23 1:num/space:global <- copy 24 ] |