lua-users home
lua-l archive

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


On Fri, Sep 24, 2010 at 10:08:17PM +0400, Rebel Neurofog wrote:
> So I wonder, is it wrong and undesirable or simply uncommon but pretty fine.
> Please let me know if this technic is already described somewhere else.

It looks like you're simply using closures for your methods.  Which is
fine, but pretty wasteful.  Your "common" approach is also wasteful
though, because it creates duplicate method functions for every
instance.

B.