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
LuaObject initialises to L=null, r = LUA_REFNIL. Then there's code:
@property bool isNil() pure nothrow @safe
{
return r == LUA_REFNIL;
}
It looks like a nil object is treated as a lua nil... which makes sense to me... but then you try and copy it:
LuaObject x = LuaObject();
LuaObject y = x;
Crash, because L == null, and the function tries to push the value. Should there be a check in the postblit that inhibits this behaviour if the object is nil?
The text was updated successfully, but these errors were encountered:
LuaObject initialises to
L=null
,r = LUA_REFNIL
. Then there's code:It looks like a nil object is treated as a lua nil... which makes sense to me... but then you try and copy it:
Crash, because
L == null
, and the function tries to push the value. Should there be a check in the postblit that inhibits this behaviour if the object is nil?The text was updated successfully, but these errors were encountered: