[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Uncommon OOP in Lua: right or wrong?
- From: Petite Abeille <petite_abeille@...>
- Date: Fri, 24 Sep 2010 20:52:51 +0200
On Sep 24, 2010, at 8:44 PM, Rebel Neurofog wrote:
> Thanks a lot!
You are welcome.
>
>> http://www.lua.org/pil/16.4.html
>
> local self = {
> balance = initialBalance,
> LIM = 10000.00,
> }
>
> Why put all these variables into table?
Just because one can?
> Expensive for memory and cheaper for speed.
Good, good. As long as it works for you :)
> I think, this is cool alternative to 'object:method (args)' stuff.
I think OOP is a passing fade as well :P
> Anyway, shouldn't it be at http://lua-users.org/wiki/ObjectOrientedProgramming
Sure.
http://lua-users.org/cgi-bin/wiki.pl?action=edit&id=ObjectOrientedProgramming