diff options
| author | Paul Buetow <paul@buetow.org> | 2008-10-19 00:12:57 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-10-19 00:12:57 +0000 |
| commit | 982e35bd0bd9bc9b55c0f898556c3e1831141258 (patch) | |
| tree | 95d12d94983ac396c693f96825cc3beea8cad50c /docs/pod/fype.tex | |
| parent | 41e590f05d295a40ba4633d493be1ffe28f16ddf (diff) | |
synonyms work
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}} |
