[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Recursive local functions
- From: rjek@...
- Date: Thu, 4 Jan 2001 18:49:55 +0000
On Thu, Jan 04, 2001 at 10:44:11AM -0800, Steve Dekorte wrote:
>
> If you're doing OO programming in lua, this isn't a problem:
>
> local myObject = {}
>
> function myObject:foo(bar)
> ... self:foo(bar2) ...
> end
Doing this is a bit of overkill, if the 'class' in question only has one
method, and no externally accessable variables.