Re: Calling getter on const object
Re: Calling getter on const object
- Subject: Re: Calling getter on const object
- From: Jonny Taylor <email@hidden>
- Date: Mon, 8 Nov 2010 19:39:43 +0000
> On Mon, Nov 8, 2010 at 10:53 AM, Jonny Taylor <email@hidden> wrote:
>> // Both these have errors: "request for member 'frameNumber' in 'm', which is of non-class type 'objc_object* const'"
>> // when compiled as ObjC++ (.mm file).
>
> Aha, this is an important point. That's why I didn't immediately pick
> up on the actual problem you were facing.
>
> Clang parses this without error. It looks like GCC was just never
> updated to handle properties in protocol definitions.
Yes, sorry - I hadn't realised that bit was important at the time... though as I noted there is a different (and also, I believe, erroneous) error for a .m file_______________________________________________
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