This shows you the differences between two versions of the page.
4rpl:commands:call [2021/01/13 18:19] – created virgilw | 4rpl:commands:call [2021/01/15 08:34] (current) – added H1 and H2 headers, fixed and clarified faulty example Sanian | ||
---|---|---|---|
Line 2: | Line 2: | ||
< | < | ||
- | === Syntax | + | ====== |
- | @FUNCTIONCALL | + | |
- | === Description | + | ===== Syntax ===== |
- | Invokes a function named FUNCTIONCALL | + | |
- | Execution passes to the function that is named and returns to the statement | + | |
- | after the call when the function is complete. | + | |
- | Arguments can be passed to and received from functions via the stack. | + | |
- | === Examples === | + | @FUNCTIONNAME |
- | <code 4rpl>trace(@MyMathFunction(3 4)) | + | |
+ | ===== Description ===== | ||
+ | |||
+ | Invokes a function named **FUNCTIONNAME**. Execution passes to said function and returns to the statement | ||
+ | after the call when the function is complete. Arguments can be passed to and received from functions via the stack. | ||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | <code 4rpl> | ||
+ | 3 4 @MyMathFunction | ||
: | : | ||
- | <-b <-a * | + | ->b -> |
+ | < | ||
</ | </ | ||