Function call()

← Back to Module core



Module core → call()

Description

Call the function that stored in f (ref object)

call(f, params)


Parameters


Return Value

-


Usage Example

f = ref(some_func())
call(f, 4, 10, 2)
 
function some_func(x, y, z)
    writeln(x ^ 2 + y + z)
stop
 
' Output:
' 28
 
 
' Another example
 
do_something(writeln())
 
function do_something(ref: f)
    call(f, "Hello")
stop