lua-users home
lua-l archive

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

On Oct 16, 2011, at 3:40 AM, David Manura wrote:

> I don't see how Lua 5.2-beta's treatment of module negatively weighs
> into bundling. 

Perhaps a case of tunnel vision?

In 5.1, one can easily bundle multiple modules per Lua file, or concatenate multiple modules into one file, or package the entire enchilada in one binary file, courtesy of luac, without any fuss.

Not anymore in 5.2 without some contrived Goldberg concoctions (see above).

This is not progress by any measure of it, but rather a big step backward.

To add insult to injury, 5.2 introduces such frivolous function as table.pack -for no other obvious reason but to keep piece and harmony with unpack- while dropping the entire module functionality. Bad karma.

In summary: keep the 5.1 module functionality in 5.2 -minus the mess with the global namespace- as a useful, and meaningful, counterpart to require.  And be merry.