Thanks for elucidating! > On 12 Jul 2017, at 22:03, Greg Parker <[email protected]> wrote: > > ARC does add an optimization where a cooperating caller and callee can safely > avoid the retain/release pair around the return operation, effectively > transforming that call into the return-retained convention.
So in my original example, autorelease is optimised away when dealing with native Swift objects, but not when dealing with Cocoa objects? Jeremy _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
