summaryrefslogtreecommitdiff
path: root/examples/functions.fy
diff options
context:
space:
mode:
authoradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-06-30 23:53:04 +0200
committeradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-06-30 23:53:04 +0200
commitadc4b59a3e7c9db6f33670164490830d87331228 (patch)
treeadc5d21856852bfb5c3cca794a9c07ad476d877e /examples/functions.fy
parent63cf3028445d8d213ffc774f77aafd7283cb4fbd (diff)
parent5ab5de91eb0ae6ed9db78a2c8c47ec67f105e504 (diff)
Diffstat (limited to 'examples/functions.fy')
-rw-r--r--examples/functions.fy25
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/functions.fy b/examples/functions.fy
deleted file mode 100644
index 15856a0..0000000
--- a/examples/functions.fy
+++ /dev/null
@@ -1,25 +0,0 @@
-#*
- * Examples of how to use functions
- *#
-
-func foo {
- say 1 + a * 3 + b;
-
- func bar {
- say "Hello i am nested";
- }
-
- bar; # Calling nested
-}
-
-my a = 2, b = 4; # Create global variables
-foo;
-assert 0 == (defined bar); # bar is not available anymore
-
-func baz {
- say "I am baz";
- undef baz;
-}
-
-baz; # Baz deletes itself
-assert 0 == (defined baz); # baz is not available anymore