Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
aliasfn [2019/08/08 11:00]
neils
aliasfn [2019/08/08 11:03] (current)
neils
Line 9: Line 9:
 The ''ALIASFN'' directive registers a new function alias in order to make it possible to call a user function without the ''USR'' keyword. This directive is mainly used in extensions. The ''ALIASFN'' directive registers a new function alias in order to make it possible to call a user function without the ''USR'' keyword. This directive is mainly used in extensions.
  
-The function name must be a valid identifier i. e. it starts with alpha or underscore and contains alpahumeric chars or underscores only. It may be appended with a sigil - any of these characters: ''!#%$'' indicating that the function alias refers to a function that returns a specific type. The default is ''#'' (integer).+The function name must be a valid identifier i. e. it starts with an alpha char or underscore and contains alphanumeric chars and underscores only. It may be appended with a sigil - any of these characters: ''!#%$'' indicating that the function alias refers to a function that returns a specific type. The default is ''#'' (integer)
 + 
 +The same alias for different types is allowed and encouraged, for example you can define the aliases ''myFunc!'' and ''myFunc#'' that point to different addresses.
  
 Example: Example: