Re: minor ARC casting question
Re: minor ARC casting question
- Subject: Re: minor ARC casting question
- From: Igor Mozolevsky <email@hidden>
- Date: Wed, 02 Nov 2011 15:59:29 +0000
On 2 November 2011 15:43, Matt Neuburg <email@hidden> wrote:
> What I wasn't understanding is why I *didn't* have to cast to __bridge id in the first two cases I listed.
That's easy: the compiler should have no problem tracking the use of
ids throughout as they are easily managed (eg, an id can live inside
an autorelease pool). So, you have a CxxxRef that was returned by an
ObjC method, which is manageable, id that is manageable, and your
assignment is manageable, so the compiler is happy.
>> Are you saying that because someone at Apple was being sloppy in
>> writing that sample code and, as it transpires, hasn't fixed that
>> mis-type yet, the document is invalidated as a whole?
>
>
> No. I was not saying anything about validity of anything. I was asking about the specific cases I'm asking about. You're the one who keeps elevating it to some sort of global warfare.
You said the notes were of no use as they were wrong in part, unless I
misunderstood what you were saying...
Cheers,
--
Igor
_______________________________________________
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