lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I seem to have a problem with strict.lua.

When I try to use lua_setglobal for creating
a new global variable, the code in strict.lua
seems to "crash". The problem is in line

  local w = debug.getinfo(2, "S").what

where debug.getinfo returns nil

I suspect that I would avoid this problem if my
lus_setglobal would be used inside a function
"called through Lua", but I would rather not
do this change now.

Any other ideas?