about summary refs log tree commit diff stats
path: root/046global.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-01 08:26:24 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-03-01 08:26:24 -0800
commit0e2b02280fd856ee172fc0d61ced128c903db61c (patch)
tree060f1ca20d61224ba8b6f41fa6e268fc2fb803b1 /046global.cc
parent9f7edb2c12023e0a342f8ee9c3e4f8ea571d9572 (diff)
downloadmu-0e2b02280fd856ee172fc0d61ced128c903db61c.tar.gz
2724 - document failures of /space:global
Diffstat (limited to '046global.cc')
-rw-r--r--046global.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/046global.cc b/046global.cc
index a99d5d80..80a83863 100644
--- a/046global.cc
+++ b/046global.cc
@@ -1,7 +1,13 @@
-// So far we have local variables, and we can nest local variables of short
-// lifetimes inside longer ones. Now let's support 'global' variables that
-// last for the life of a routine. If we create multiple routines they won't
-// have access to each other's globals.
+//: So far we have local variables, and we can nest local variables of short
+//: lifetimes inside longer ones. Now let's support 'global' variables that
+//: last for the life of a routine. If we create multiple routines they won't
+//: have access to each other's globals.
+//:
+//: This feature is still experimental and half-baked. You can't name global
+//: variables, and so like in most tests they don't get checked for types (the
+//: only known hole in the type system, can cause memory corruption). We might
+//: fix these issues if we ever use globals. Or we might just drop the feature
+//: entirely.
 
 :(scenario global_space)
 recipe main [