lua-users home
lua-l archive

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

I think I've found a bug in the C loader/seracher of Lua 5.1:

With the current version of require51 found at,
if the sentinel is a table, it ends up being populated by the C loader
as if it were the module.

For eample, requiring lpeg twice triggers the cycle detection code. If
the sentinel has another type, the error does not occur.

However it is nowhere passed as a parameter to anything... I suppose
it is left on the stack and coopted by the loader.