[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: anything wrong by not using "module" ?
- From: Matthew Wild <mwild1@...>
- Date: Sun, 27 Mar 2011 18:00:51 +0100
On 27 March 2011 17:44, Gaspard Bucher <email@example.com> 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).