Topics DoCall

... DoCall ( string function, ... )

DoCall is a top-level Lua function that can be used to call an MMF function. It is an alternative to using function registration. All registered functions, in fact, are simple wrappers around a DoCall function.

DoCall takes the function name to call as its first parameter, then all parameters intended for the target function. It returns all values returned by the target function.

For calling MMF functions set up in function groups, the functions DoCallA, DoCallB, DoCallC, DoCallD, DoCallE, DoCallF, and DoCallG are defined in the global table and follow the same semantics.

Parameters

function Name of an MMF function
... Zero or more parameters of type number, string, nil, or boolean

Return Values

... Zero or more return values of type number, string, nil, table, or boolean

Copyright 2010 Justin Aquadro