Skip to content

Draft: Lua method call #25

Alexey Protsenko requested to merge ticket25 into master

issue #25 (closed) (it works :-) )

Add an ability to call methods on LuaTables hlua has a LuaTable struct, which supports getting and setting elements, but calling methods using this api is not good.

The result should look something like this:

let lua = hlua::Lua::new();
let table: hlua::LuaTable<_> = lua.get("a").unwrap();
let res: T = table.call_method("foo", (1, "bar"));
Edited by Alexey Protsenko

Merge request reports