Re: Obj-C question: protocol usage and inheritance
Re: Obj-C question: protocol usage and inheritance
- Subject: Re: Obj-C question: protocol usage and inheritance
- From: Nat! <email@hidden>
- Date: Sun, 15 Sep 2002 20:07:32 +0200
The problem is that the compiler gives me warning because name and
setName are not implemented in MyClass (which is true: these methods
are inherited from MySuperClass). I thought the compiler would notice
that MyClass has access to these methods by inheritance.
I would have thought so too. I am not sure why this isn't the case. The
behaviour has been there the last 5 years at least and it's very
inconvenient.
How do you people usually deal with this? Do you re-define inherited
methods in sub-classes (yuck)? Are you even using protocol for
polymorphism?
Dont' laugh:
#warning (nat) ignore next two warnings because of compiler lameness
But mostly I have given up on protocols altogether.
Ciao
Nat!
Jedenfalls sind zehn Fehlstarts hintereinander [E. Fuchs]
ein sehr interessanter Beweis
fuer unsere Theorie
von der natuerlichen Ueberlegenheit des Dezimalsystems
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.