lua-users home
lua-l archive

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


Hi,
         I added a simple package.searcher function in Lua 5.3 as follows:

package.searchers[5] = function(...)

local t = {...}
print(#t,t[1])

end

but now when I do require("nonexistentmodule") then I don't see this function being called. How are the searchers supposed to work with require? 

Thanks,
Milind