dynamiclua
dynamiclua copied to clipboard
pairs() does not work for C# objects
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 add support for pairs to C# objects.
The problem is, that such object are not modified by DynamicLua, maybe this change has to be done in NLua.