LuaDynamic

Represents a reference to a Lua value of any type. Supports all operations you can perform on values in Lua.

Members

Functions

opCall
LuaDynamic[] opCall(Args args)

Call this object. This object must either be a function, or have a metatable providing the ___call metamethod.

opDispatch
LuaDynamic[] opDispatch(Args args)

Perform a Lua method call on this object.

opEquals
bool opEquals(T other)

Compare the referenced object to another value with Lua's equality semantics. If the _other value is not a Lua reference wrapper, it will go through the regular D to Lua conversion process first. To check for nil, compare against the special constant "nil".

opIndex
LuaDynamic opIndex(T key)

Index this object. This object must either be a table, or have a metatable providing the ___index metamethod.

Variables

object
LuaObject object;

Underlying Lua reference. LuaDynamic does not sub-type LuaObject - qualify access to this reference explicitly.

Meta