LuaObject

Represents a reference to a Lua value of any type. It contains only the bare minimum of functionality which all Lua values support. For a generic reference type with more functionality, see $(DPREF dynamic,LuaDynamic).

Constructors

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

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

opEquals
bool opEquals(T o)

Compare this object to another with Lua's equality semantics. Also returns false if the two objects are in different Lua states.

push
void push()
Undocumented in source. Be warned that the author may not have intended to support it.
release
void release()

Release this reference.

state
lua_State* state()

The underlying lua_State pointer for interfacing with C.

to
T to()

Attempt to convert the referenced object to the specified D type.

toString
string toString()

Convert the referenced object into a textual representation.

Properties

isNil
bool isNil [@property getter]

Boolean whether or not the referenced object is nil.

type
LuaType type [@property getter]

Type of referenced object.

typeName
string typeName [@property getter]

Type name of referenced object.

Static functions

checkType
void checkType(lua_State* L, int idx, int expectedType, const(char)* expectedName)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta