lua-users home
lua-l archive

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


Javier Guerra wrote:
> On Monday 05 March 2007, Javier Guerra wrote:
>> On Monday 05 March 2007, Jerome Vuarand wrote:
>>> function a:baz() --< Even better, use implicit self
>>>     self.super.baz() --< Here use self instead of a
>> 
>> shouldn't this be "self.super:baz()" ?
> 
> of course not, should be "self.super.baz(self)"  (and any other
> parameters) 

Yep, you're right.
I tested the example and it worked because the method example don't
reference the object. Thanks for reminding me that bad tests can be
worst than bad code :-)