Core Function Call
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Call <function>, <expressions> </pre> === Description === Calls a function contained in a string parameter. === function === The name of the user function to call. ===...") |
|||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
− | Call <function>, <expressions> | + | Call <function/array>, <expressions> |
</pre> | </pre> | ||
Line 10: | Line 10: | ||
The name of the user function to call. | The name of the user function to call. | ||
+ | |||
+ | OR | ||
+ | |||
+ | A two element array to use as the call class and function name. | ||
=== expressions === | === expressions === |
Revision as of 15:49, 20 January 2013
Call <function/array>, <expressions>
Contents |
Description
Calls a function contained in a string parameter.
function
The name of the user function to call.
OR
A two element array to use as the call class and function name.
expressions
None, One or more arguments to send to the function.
Return Value
Acts like a regular function call.
Remarks
The function CAN be a built-in Sputnik function or a user defined one.
The function can pass arguments to functions, also & pointer parameters are supported.
Example
Call( "Test", 10, 20); Function Test($a, $b) { println("Hello from test ($a, $b)"); }