lua-users home
lua-l archive

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

On Wed, Apr 10, 2013 at 9:42 PM, Petite Abeille
<> wrote:
> Meh… it's what most loaders do… plus, it's one of the few way to make modules concatenable (ala luac or plain cat).
> In other words, 'return' forces the physical representation of a module down one's throat (one file ~= one module). package.loaded liberates one from the tyranny of files. YMMV.

You can always wrap your files in a function wrapper, and add an
appropriate loader/searcher.

-- Pierre-Yves