Functions
call
Invoke a function, optionally capturing its return value.
Syntax
call <name>(<args>); call <object>.<method>(<args>); define <type> result is call <name>(<args>);
How she behaves
- You can call for side effects only, or assign the result.
- Methods on an object use a dot: call jacob.Birthday();
- Inside a class, call self.FormatName(); reaches another method of the same object.
- Argument types must match the function signature.
Example
define decimal z is call division(x, y); call jacob.Birthday();