RE: Protocol doesn't seem to compile?
RE: Protocol doesn't seem to compile?
- Subject: RE: Protocol doesn't seem to compile?
- From: "Jason Vowell" <email@hidden>
- Date: Fri, 27 Feb 2004 08:35:31 -0600
There is no need to write code to test protocols or "interfaces" they are
designed and they can be used to present a design for someone else to
implement... they contain not implementation and thus there is nothing to
test... but I'm surprised that people don't seem to have a problem with
@protocol not being checked for syntax (unless as said before they are
referenced by an implementing class)
Jason
-----Original Message-----
From: email@hidden
[
mailto:email@hidden] On Behalf Of Andreas Mayer
Sent: Friday, February 27, 2004 2:20 AM
To: email@hidden
Subject: Re: Protocol doesn't seem to compile?
Am 27.02.2004 um 02:42 schrieb email@hidden:
>
I am writing some libraries that are quite heavy on the abstract side
>
of
>
things, and who's purpose is to define what in Java would be
>
"Interface"
>
classes.. I am implementing these with Objective-C using @protocol, but
>
since the library's purpose is just to define the protocols not
>
implement
>
them I've found that the compiler doesn't check my syntax at all, but
>
rather just ignores the protocols.
>
>
Any other insights into this?
Maybe I'm missing something, but wouldn't you have to write some test
code to see if your protocols work as expected anyway?
Andreas
_______________________________________________
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.
_______________________________________________
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.