lua-users home
lua-l archive

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

On Apr 10, 2013, at 12:07 PM, Dirk Laurie <> wrote:

> Messing around with package.loaded qualifies as obfuscated code.

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.