Except that the Short Practical Guide to Blocks you linked to uses:

<return type> ^ (<arg-list>) { <code> };

With the example of:

int (^Multiply)(int, int) = ^(int num1, int num2) {
    return num1 * num2;
};
int result = Multiply(7, 4);

In addition, Session #406 at WWDC 2009 put forth block syntax in the same 
format (~3:00 on the video), and Blaine made sure to point out that it was 
essentially just a function pointer, but with a ^ instead of a *.

Dave

On Jun 28, 2010, at 4:12 PM, Bill Bumgarner wrote:

> the syntax full syntax is as I posted:
> 
> ^<return-type>  (<arg-list>) {<code>};

<snip>

> http://developer.apple.com/iphone/library/featuredarticles/Short_Practical_Guide_Blocks/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to