lua-users home
lua-l archive

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

This sounds like you call luaopen_io directly. You should call it from lua (see linit.c).


Brian Weed skrev:
After recently upgrading to Lua v5.1.1, I am now getting an error when trying to call luaopen_io (previously known as lua_iolibopen):


lapi.c line 203:
/* explicit test for incompatible code */
if (...)
   luaG_runerror(L, "no calling environment")

Can someone tell me why one would get this error? I'm not messing with environments (not on purpose, anyway).