[DGD] unequal prototypes driving me crazy
Felix A. Croes
felix at dworkin.nl
Thu Sep 2 15:23:20 CEST 2010
Shentino <shentino at gmail.com> wrote:
> So, just to be clear...if two of my inheritees define the same function with
> different prototypes, it's still legal to inherit them both as long as I
> override it myself?
That is correct. The typechecking for masking functions is intentionally
weak; the overriding function does not have to match the original in any
way. The typechecking for matching a function with a prototype is
intentionally strong.
Regards,
Felix Croes
More information about the DGD
mailing list