LuaTable.get

Lookup a value in this table or in a sub-table of this table.

struct LuaTable
@trusted
T
get
(
T
U...
)
()

Parameters

T

type of value

args U

list of keys, where all keys but the last one should result in a table

Return Value

Type: T

t[k] where t is the table for the second-to-last parameter, and k is the last parameter

Examples

auto execute = lua.get!LuaFunction("os", "execute");
execute(`echo hello, world!`);

Meta