lua-users home
lua-l archive

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


On 27 March 2011 17:44, Gaspard Bucher <gaspard@teti.ch> wrote:
> Thanks for the reply Eduardo. My question was more focused on not using
> "module" to declare the class as in:
> module("lk.Dir", package.seeall)
> If we don't clutter the global namespace and declare methods on the library,
> is there any need for "module" ?

No, which is partly why it doesn't exist in 5.2. Just return your
module table (you didn't in your original example).

Regards,
Matthew