summaryrefslogtreecommitdiff
path: root/docs/pod/fype.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pod/fype.html')
-rw-r--r--docs/pod/fype.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/pod/fype.html b/docs/pod/fype.html
index b88a1b4..02c30c4 100644
--- a/docs/pod/fype.html
+++ b/docs/pod/fype.html
@@ -38,6 +38,7 @@
</ul>
<li><a href="#variables">VARIABLES</a></li>
+ <li><a href="#synonyms_to_variables_identifiers">SYNONYMS TO VARIABLES/IDENTIFIERS</a></li>
<li><a href="#built_in_functions">BUILT IN FUNCTIONS</a></li>
<ul>
@@ -310,6 +311,19 @@ not.</p>
<p>
</p>
<hr />
+<h1><a name="synonyms_to_variables_identifiers">SYNONYMS TO VARIABLES/IDENTIFIERS</a></h1>
+<p>Each variable can have as many synonyms as wished. A synonym is another name to access the content of a specific variable. Here is an example of how to use synomyms:</p>
+<pre>
+ my foo = &quot;foo&quot;;
+ my bar = \foo;
+ foo = &quot;bar&quot;;</pre>
+<pre>
+ # The synonym variable should now also set to &quot;bar&quot;
+ assert &quot;bar&quot; == bar;</pre>
+<p>Synonyms can be used for all kind of identifiers. It's not limited to normal variables but can be also used for function and procedure names etc.</p>
+<p>
+</p>
+<hr />
<h1><a name="built_in_functions">BUILT IN FUNCTIONS</a></h1>
<p>In Fype, operators are built in functions as well. The difference is, that they may be written in infix notation instead in front of the arguments. The types inside the () specify the return types.</p>
<p>