lua-users home
lua-l archive

Re: package.searchers

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


> 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. [...]
I do. What do you see?
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /