Enumerates all Lua types.
Special value representing the Lua type and value nil.
lua["n"] = 1.23; assert(lua.get!double("n") == 1.23); lua["n"] = nil; assert(lua["n"].type == LuaType.Nil);
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 luad.dynamic.LuaDynamic.
The underlying lua_State pointer for interfacing with C.
Release this reference.
This reference becomes a nil reference. This is only required when you want to release the reference before the lifetime of this LuaObject has ended.
Type of referenced object.
Type name of referenced object.
Boolean whether or not the referenced object is nil.
Convert the referenced object into a textual representation.
The returned string is formatted in the same way the Lua tostring function formats.
Attempt to convert the referenced object to the specified D type.
auto results = lua.doString(`return "hello!"`); assert(results[0].to!string() == "hello!");
Compare this object to another with Lua's equality semantics. Also returns false if the two objects are in different Lua states.