diff options
Diffstat (limited to 'docs/pod/fype.pod')
| -rw-r--r-- | docs/pod/fype.pod | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/pod/fype.pod b/docs/pod/fype.pod index 2e41645..2773c4e 100644 --- a/docs/pod/fype.pod +++ b/docs/pod/fype.pod @@ -219,6 +219,19 @@ not. say foo; } +=head1 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: + + my foo = "foo"; + my bar = \foo; + foo = "bar"; + + # The synonym variable should now also set to "bar" + assert "bar" == bar; + +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. + =head1 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. |
