Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Assigning blocks in an if
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assigning blocks in an if



On Tue, Jul 19, 2011 at 4:37 PM, Greg Parker <email@hidden> wrote:
> On Jul 19, 2011, at 4:19 PM, Kyle Sluder wrote:
>> On Tue, Jul 19, 2011 at 3:57 PM, Greg Parker <email@hidden> wrote:
>>>
>>> ARC fixes this. It will copy the block unless the optimizer determines that it is safe not to.
>>
>> This intrigues me. When would it be unsafe to copy the block?
>
> Other way around. It is always safe to copy the block object. The optimization is not copying if the copy is not required.

Oops. I misread "safe not to" as "not safe to." That makes a lot more sense.

Thanks!

--Kyle Sluder
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Assigning blocks in an if (From: Kyle Sluder <email@hidden>)
 >Re: Assigning blocks in an if (From: Greg Parker <email@hidden>)
 >Re: Assigning blocks in an if (From: Kyle Sluder <email@hidden>)
 >Re: Assigning blocks in an if (From: Greg Parker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.