lua-users home
lua-l archive

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


So why aren't the paths from where the modules are loaded, simply kept in a table mapped to the module name?



On Fri, Apr 12, 2019 at 8:10 PM Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> [...]
>
> But life could be made easier for the poor programmer by addressing
> two great defects:
>
> In the Lua standard library, there is no easy way of detecting where
> the module was found. One can repeat all the work using
> package.searchpath to find out where the module should have been
> found, but you can't check whether the module actually loaded was that
> one.

What would be like such feature? Do you have something in mind?

-- Roberto