[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: overriding method of a single object and calls its metatablemethod ?
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Mon, 5 Mar 2007 19:00:36 -0500
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 :-)