lua-users home
lua-l archive

Re: overriding method of a single object and calls its metatable method ?

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


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)
-- 
Javier

Attachment: pgp3nxst19UnV.pgp
Description: PGP signature


AltStyle によって変換されたページ (->オリジナル) /