invoke

Syntax

%invoke(funcname[,arg1[,arg2[...]]])

Description

%invoke calls the function named by the first argument with the parameters specified in the rest of the arguments.

The purpose of this is to invoke a function whose name is variably defined.

Another use is to call functions whose arguments are normally autoquoted in a nonquoted (variably defined) form.

Example

%set(func,add)
%invoke(%func%,1,1)

----

2

See Also

expand