LuaFunction

Represents a Lua function.

Constructors

this
this(lua_State* L, int idx)
Undocumented in source.

Alias This

object

Members

Functions

call
T call(U args)

Call this function.

dump
bool dump(bool delegate(in void[]) writer)

Dump this function as a binary chunk of Lua bytecode to the specified writer delegate. Multiple chunks may be produced to dump a single function.

opCall
LuaObject[] opCall(U args)

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

setEnvironment
void setEnvironment(LuaTable env)

Set a new environment for this function.

Variables

object
LuaObject object;

LuaFunction sub-types $(DPREF base, LuaObject) through this reference.

Meta