summaryrefslogtreecommitdiff
path: root/docs/pod/fype.man
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-10-19 00:12:57 +0000
committerPaul Buetow <paul@buetow.org>2008-10-19 00:12:57 +0000
commit982e35bd0bd9bc9b55c0f898556c3e1831141258 (patch)
tree95d12d94983ac396c693f96825cc3beea8cad50c /docs/pod/fype.man
parent41e590f05d295a40ba4633d493be1ffe28f16ddf (diff)
synonyms work
Diffstat (limited to 'docs/pod/fype.man')
-rw-r--r--docs/pod/fype.man18
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/pod/fype.man b/docs/pod/fype.man
index b3d89bf..42daf43 100644
--- a/docs/pod/fype.man
+++ b/docs/pod/fype.man
@@ -129,7 +129,7 @@
.\" ========================================================================
.\"
.IX Title "FYPE 1"
-.TH FYPE 1 "2008-09-06" "Fype v0.1-devel Build 9208" "The Fype Users Manual Page"
+.TH FYPE 1 "2008-10-19" "Fype v0.1-devel Build 9219" "The Fype Users Manual Page"
.SH "NAME"
\&\fBFype\fR is \fBF\fRor \fBY\fRour \fBP\fRrogram \fBE\fRxecution
.PP
@@ -345,6 +345,22 @@ not.
\& say foo;
\& }
.Ve
+.SH "SYNONYMS TO VARIABLES/IDENTIFIERS"
+.IX Header "SYNONYMS TO VARIABLES/IDENTIFIERS"
+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:
+.PP
+.Vb 3
+\& my foo = "foo";
+\& my bar = \efoo;
+\& foo = "bar";
+.Ve
+.PP
+.Vb 2
+\& # The synonym variable should now also set to "bar"
+\& assert "bar" == bar;
+.Ve
+.PP
+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.
.SH "BUILT IN FUNCTIONS"
.IX Header "BUILT IN FUNCTIONS"
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.