Re: Compiler Warning City
Re: Compiler Warning City
- Subject: Re: Compiler Warning City
- From: David Remahl <email@hidden>
- Date: Thu, 24 Oct 2002 23:32:33 +0200
>
Is there any way to use type "id" and not get two compiler warnings per
>
usage?
>
>
1. warning: cannot find method
>
2. warning: return type for "whatever:" defaults to id
>
>
There are some times where I don't want or can't easily use static
>
typing, and it would be really nice if the compiler could say "Hey, its
>
type 'id', that means he does not want warnings about methods (which
>
would be impossible anyway) and warnings about return types (which
>
would also be impossible.)" Ideally I'd like the compiler to check on
>
the static stuff and not on the type "id" stuff.
>
>
Is this possible?
Import the file where the selector is defined. Messages to id are checked
against all the selectors the compiler knows of, collected from all classes,
categories and protocols.
/ Rgds, David
_______________________________________________
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.