Hi, Stukov wrote: > lua_setfield(L, 2, name); /* _LOADED[name] = true */ > > ^^^^^^^^^^^^ it is marked as loaded, but real loading may fail. > When next time I try to call require function, it event don't try to > load module. Known bug in 5.1-work6: http://lua-users.org/lists/lua-l/2005-08/msg00027.html Either apply the small patch in that message or use the cumulative patch which fixes quite a few more things: http://lua-users.org/lists/lua-l/2005-08/msg00086.html Bye, Mike