On Sep 29, 2012, at 8:40 PM, Quincey Morris 
<quinceymor...@rivergatesoftware.com> wrote:

> On Sep 29, 2012, at 19:41 , "Gerriet M. Denkmann" <gerr...@mdenkmann.de> 
> wrote:
> 
>> LongBlock_t aBlock =     <...some magic here...> { (void)a; unsigned long x 
>> = 5; return x;};
>> 
>> What should <...some magic here...> look like?
> 
> LongBlock_t aBlock =    ^ unsigned long (id a) {...};

I wasn't aware this was accepted syntax. I was under the impression that you 
either had to explicitly case the return value or explicitly cast the block 
literal.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to