Re: Why can't I name a property `tag'?
Re: Why can't I name a property `tag'?
- Subject: Re: Why can't I name a property `tag'?
- From: Graham Cox <email@hidden>
- Date: Fri, 11 Jul 2008 01:52:06 +1000
Actually it doesn't emit a warning.
If you recall my problem a few weeks ago with:
- (float) position;
vs.
- (int) position;
the compiler sailed blithely on without a mention, generating code
that smashed the stack to pieces.
This is different from the situation that does emit a warning, where
the method is completely unknown and is assumed to return type 'id'. I
do compile with many additional warnings, but I haven't found one that
picks up this problem.
Graham
On 11 Jul 2008, at 1:40 am, Jens Alfke wrote:
If it finds more than one method, and the return types differ, then
the situation is ambiguous … so it emits a warning
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden