dynamiclua icon indicating copy to clipboard operation
dynamiclua copied to clipboard

Wrapper for NLua, making access to lua more idomatic from .NET. Heavily using the "dynamic" keyword.

Results 6 dynamiclua issues
Sort by recently updated
recently updated
newest added

`pairs()` iterates over all key inside a tables. Since C# objects are `userdata`, `pairs` does not work. These is a metamethod called `__pairs` so it ~~should~~ might be possible to...

enhancement

I would be great if we would have a sample project working as a showcase for some featues.

enhancement

This fails: ``` csharp dynamic tab = lua.NewTable("tab"); dynamic mt = lua.NewTable("mt"); mt.__call = new Func((t) => "call no args"); tab.SetMetatable(mt); lua.tab()); //fail ``` ``` System.InvalidCastException: Das Objekt des Typs...

We could implement Methods for getting values without using the Metatables like Lua does. In Lua these functions are called `rawget()` and `rawset()`.

enhancement

Lua allows the metatables `__index` entry to be a table (and not only a function). In this case the value from the `__index` table is returned, if found. See http://www.lua.org/pil/13.4.1.html...

bug

When a C#-Method is called with a table as a parameter, a instance of LuaTable is passed not a instance of DynamicLuaTable. Currently there is no idea how to change...