diff options
Diffstat (limited to 'global.mu')
-rw-r--r-- | global.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/global.mu b/global.mu index b78ba47b..7f117c0c 100644 --- a/global.mu +++ b/global.mu @@ -1,6 +1,6 @@ # example program: creating and using global variables -recipe main [ +def main [ # allocate 5 locations for globals global-space:address:shared:array:location <- new location:type, 5 # read to globals by using /space:global @@ -8,7 +8,7 @@ recipe main [ foo ] -recipe foo [ +def foo [ # ditto for writing to globals $print 1:number/space:global, 10/newline ] |