about summary refs log tree commit diff stats
path: root/global.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-08-20 22:03:31 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-08-20 22:03:31 -0700
commit7a4bf4cfabd5808f986003154585cde7eca248f9 (patch)
treeef1c15024a8583d5d43638237b39f2e2d77df0f1 /global.mu
parentaa42c8646ac87ec4c0a41b09b6153a73d12688ed (diff)
downloadmu-7a4bf4cfabd5808f986003154585cde7eca248f9.tar.gz
3976
Diffstat (limited to 'global.mu')
-rw-r--r--global.mu14
1 files changed, 0 insertions, 14 deletions
diff --git a/global.mu b/global.mu
deleted file mode 100644
index 7e0c042f..00000000
--- a/global.mu
+++ /dev/null
@@ -1,14 +0,0 @@
-# example program: creating and using global variables
-
-def main [
-  # allocate 5 locations for globals
-  global-space:space <- new location:type, 5
-  # read to globals by using /space:global
-  1:num/space:global <- copy 3
-  foo
-]
-
-def foo [
-  # ditto for writing to globals
-  $print 1:num/space:global, 10/newline
-]