summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-06-30 23:53:09 +0200
committeradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-06-30 23:53:09 +0200
commitac9339b92d8eb95d54c04cc1f507131642052199 (patch)
tree9213a8bd41ba14bd8ed48c8bbc96851453b87f2d /examples
parent63cf3028445d8d213ffc774f77aafd7283cb4fbd (diff)
parent9bf07e1dfa69b5d6e4c296c0690b5ed91f909b7b (diff)
Merge remote-tracking branch 'remotes/github/v0.1' into v0.1
Diffstat (limited to 'examples')
-rw-r--r--examples/all-examples.txt42
-rw-r--r--examples/scopeing.fy4
2 files changed, 0 insertions, 46 deletions
diff --git a/examples/all-examples.txt b/examples/all-examples.txt
index f71e8a2..bdf199f 100644
--- a/examples/all-examples.txt
+++ b/examples/all-examples.txt
@@ -283,10 +283,6 @@ my foo = 1;
# Prints out 1
assert 1 == (put defined bar);
-
- # Prints out all available symbols at
- # the current program position.
- scope;
}
# Prints out 0
@@ -301,44 +297,6 @@ assert 0 == (say defined bar);
#*
- * Examples of how to use synonyms
- *#
-
-# Create a variable foo, and bar is a synonym for foo
-my foo = "foo";
-my bar = \foo;
-
-# Reset the value of foo
-foo = "bar";
-
-# The synonym variable should now also set to "bar"
-assert "bar" == say bar;
-
-# Create a new procedure baz
-proc baz {
- say "I am baz";
-}
-
-# Make a synonym baz, and undefine baz
-my bay = \baz;
-
-# Should be the num of syms for the same value
-assert 2 == syms baz;
-assert 2 == syms bay;
-undef baz;
-assert 1 == syms bay;
-
-# bay still has a reference of the original procedure baz
-bay; # this prints aut "I am baz"
-
-assert 0 == defined baz;
-assert 1 == defined bay;
-
-# This removes the procedure from memory
-undef bay;
-
-
-#*
* Examples how to convert types
*#
diff --git a/examples/scopeing.fy b/examples/scopeing.fy
index 434f38f..2e36c2c 100644
--- a/examples/scopeing.fy
+++ b/examples/scopeing.fy
@@ -13,10 +13,6 @@ my foo = 1;
# Prints out 1
assert 1 == (put defined bar);
-
- # Prints out all available symbols at
- # the current program position.
- scope;
}
# Prints out 0