lua-users home
lua-l archive

Re: package.searcher modification for lua modules

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


On 22 September 2015 at 05:00, Sean Conner <sean@conman.org> wrote:
> Why does everybody assume "org" is the "main" module when it's not? It's
> not "org" with "conman.syslog" as a submodule, it's "org.conman.syslog".
> The first two levels, "org.conman" just namespace my modules.
>
> Geeze, I might have to make "org.flummux.syslog" just to prove the point!
> -spc (I must be the odd-man out ... )
Well, I am with you: note that a certain Lua project has a bunch of
modules with names such as "luarocks.fetch", "luarocks.fs.unix.tools",
and so on, and there is no main module called "luarocks".
-- Hisham (let's make some T-shirts "namespacing is not a crime")
http://hisham.hm/

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