diff options
Diffstat (limited to 'examples/scopeing.fy')
| -rw-r--r-- | examples/scopeing.fy | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/examples/scopeing.fy b/examples/scopeing.fy deleted file mode 100644 index 434f38f..0000000 --- a/examples/scopeing.fy +++ /dev/null @@ -1,31 +0,0 @@ -#* - * Examples of how to use scopeing - *# - -my foo = 1; - -{ - # Prints out 1 - assert 1 == (put defined foo); - - { - my bar = 2; - - # Prints out 1 - assert 1 == (put defined bar); - - # Prints out all available symbols at - # the current program position. - scope; - } - - # Prints out 0 - assert 0 == (put defined bar); - - my baz = 3; -} - -# Prints out 0 -assert 0 == (say defined bar); - - |
