diff options
Diffstat (limited to 'docs/pod/fype.tex')
| -rw-r--r-- | docs/pod/fype.tex | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/pod/fype.tex b/docs/pod/fype.tex index bcdea5f..19fa9f2 100644 --- a/docs/pod/fype.tex +++ b/docs/pod/fype.tex @@ -272,6 +272,24 @@ not. say foo; } \end{verbatim} +\section{SYNONYMS TO VARIABLES/IDENTIFIERS\label{SYNONYMS_TO_VARIABLES_IDENTIFIERS}\index{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: + +\begin{verbatim} + my foo = "foo"; + my bar = \foo; + foo = "bar"; +\end{verbatim} +\begin{verbatim} + # The synonym variable should now also set to "bar" + assert "bar" == bar; +\end{verbatim} + + +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. + \section{BUILT IN FUNCTIONS\label{BUILT_IN_FUNCTIONS}\index{BUILT IN FUNCTIONS}} |
