You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I was wondering if it's possible to Extend LuaTable.
I have successfully used LuaType.RegisterTypeExtension(typeof(XXXExtensions)); For extending lots of other types. But if i try the same for LuaTable it does not work in Lua.
Stupid :P
'table:DoSomethingStupid' not found. Neo.IronLua.LuaRuntimeException: 'table:DoSomethingStupid' not found.
at Neo.IronLua.LuaChunk.Run(LuaTable env, Object[] callArgs)
at Neo.IronLua.LuaGlobal.DoChunk(LuaChunk chunk, Object[] callArgs)
at Neo.IronLua.LuaGlobal.LuaDoChunk(Object[] args)
at CallSite.Target(Closure , CallSite , Object , LuaChunk )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at CallSite.Target(Closure , CallSite , Object , LuaChunk )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
at NectOPC.NectOPC.ExecuteLua(String scriptfile)
StackTrace: -- internal --
at [L] config(LuaTable) line config.lua:11
It is likely that there is a technical reason why this is not working. However, it would be desirable to have the capability to use extnsion methods on LuaTable in Lua.
The text was updated successfully, but these errors were encountered:
NeoLua Version: HEAD
Hi. I was wondering if it's possible to Extend LuaTable.
I have successfully used
LuaType.RegisterTypeExtension(typeof(XXXExtensions));
For extending lots of other types. But if i try the same for LuaTable it does not work in Lua.Extension:
Later:
I can use the extension method in c# but not in Lua, Example to reproduce:
Result:
It is likely that there is a technical reason why this is not working. However, it would be desirable to have the capability to use extnsion methods on LuaTable in Lua.
The text was updated successfully, but these errors were encountered: