summaryrefslogtreecommitdiff
path: root/docs/pod/fype.html
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-10-26 12:51:57 +0000
committerPaul Buetow <paul@buetow.org>2008-10-26 12:51:57 +0000
commita1c3f47491b98cd9026f8e853cc9e72630805c12 (patch)
treeec2ea29640b43f2c1f820fd3fee317beec27d130 /docs/pod/fype.html
parent380eacd0f4037ec00f37ad5b5e4baa18301cf3dd (diff)
added the "scope" function
Diffstat (limited to 'docs/pod/fype.html')
-rw-r--r--docs/pod/fype.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/pod/fype.html b/docs/pod/fype.html
index 6400295..0a709bb 100644
--- a/docs/pod/fype.html
+++ b/docs/pod/fype.html
@@ -228,7 +228,7 @@ TODO file of the source distribution of Fype!</p>
<p>
</p>
<h2><a name="scopeing">Scopeing</a></h2>
-<p>A new scope starts with an { and ends with an }. An exception is a procedure, which does not use its own scope (see later in this manual). Control statements and functions support scopeings. Here is a small example how to use scopes:</p>
+<p>A new scope starts with an { and ends with an }. An exception is a procedure, which does not use its own scope (see later in this manual). Control statements and functions support scopeings. The <strong>scope</strong> function will print out all available symbols at the current position. Here is a small example of how to use scopes:</p>
<pre>
my foo = 1;</pre>
<pre>
@@ -239,7 +239,11 @@ TODO file of the source distribution of Fype!</p>
my bar = 2;</pre>
<pre>
# Prints out 1
- put defined bar;
+ put defined bar;</pre>
+<pre>
+ # Prints out all available symbols at this
+ # point to stdout. Those are: bar and foo
+ scope;
}</pre>
<pre>
# Prints out 0