[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Uncommon OOP in Lua: right or wrong?
- From: Rob Kendrick <rjek@...>
- Date: Fri, 24 Sep 2010 19:12:01 +0100
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.