Re: Stupid block syntax!
Re: Stupid block syntax!
- Subject: Re: Stupid block syntax!
- From: Graham Cox <email@hidden>
- Date: Wed, 04 Jul 2012 22:15:10 +1000
On 04/07/2012, at 4:19 PM, Quincey Morris wrote:
> Actually, for a block literal, it's:
>
> … = ^NSComparisonResult ( id<DKStorableObject> a, id<DKStorableObject> b ) { … }
>
> The literal syntax puts the return type after the [unparenthesized] "^", unlike the pointer syntax which puts the return type before the [parenthesized] "^".
>
Ah, and I just saw this after reading the earlier replies and drunkenly stumbling around in my code for a bit longer...
Thanks!!
--Graham
_______________________________________________
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