summaryrefslogtreecommitdiff
path: root/doc/colm/code/reference.lm
diff options
context:
space:
mode:
Diffstat (limited to 'doc/colm/code/reference.lm')
-rw-r--r--doc/colm/code/reference.lm11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/colm/code/reference.lm b/doc/colm/code/reference.lm
new file mode 100644
index 00000000..122ab6f6
--- /dev/null
+++ b/doc/colm/code/reference.lm
@@ -0,0 +1,11 @@
+str sa( where:ref < str > ) {
+ print( "in SA ", where, "\n" )
+ where = "sa"
+ print( "in SA ", where, "\n" )
+}
+
+where: str = "global"
+print( "in global ", where, "\n" )
+sa( where )
+print( "in global ", where, "\n" )
+