LuaFunction.opCall

Call this function and collect all return values as an array of $(DPREF base, LuaObject) references.

struct LuaFunction
opCall
(
U...
)
()

Examples

lua.doString(`function f(...) return ... end`);
auto f = lua.get!LuaFunction("f");

LuaObject[] ret = f(1.2, "hello!", true);

assert(ret[0].to!double() == 1.2);
assert(ret[1].to!string() == "hello!");
assert(ret[2].to!bool());

Meta