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: Nicola Pero <email@hidden>
- Date: Tue, 17 Sep 2002 05:06:34 +0100 (BST)
On Mon, 16 Sep 2002, Normand Rivard wrote:
>
According to http://www.toodarkpark.org/computers/objc/moreobjc.html#787
>
(look for "Conforming to a Protocol"), "A class is said to conform to a
>
formal protocol if it adopts the protocol or inherits from a class that
>
adopts it. " This could mean that MySuperClass should also conform to
>
the protocol MyClassType to shut up the warnings. The problem is that in
>
general, it doesn't make sense (although it might in my specific case).
>
>
If someone from Apple from the compiler group can reply to this, I would
>
appreciate. My opinion is that a class should be said to conform to a
>
formal protocol if it adopts the protocol **by implementation or
>
inheritance** or inherits from a class that adopts it. I don't think it
>
would break any existing code if the compiler could be changed (fixed?)
>
to support that definition. Did I mention that even if I have warnings,
>
this code works perfectly well at run time?
Please read the documentation for the -Wno-protocol compiler switch.
_______________________________________________
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.