[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Non-uniqueness of module names
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 12 Apr 2019 21:54:46 +0200
Op Vr. 12 Apr. 2019 om 21:38 het Sean Conner <sean@conman.org> geskryf:
>
> It was thus said that the Great Abhijit Nandy once stated:
> > So why aren't the paths from where the modules are loaded, simply kept in a
> > table mapped to the module name?
>
> Because not all Lua modules have a path.
All modules loaded by 'require' and not found in package.loaded have a
path. These are the ones of interest in situations where there may be
uncertainty as to where the package was found.