Block syntax failure
Block syntax failure
- Subject: Block syntax failure
- From: Charlie Dickman <email@hidden>
- Date: Fri, 1 Jan 2010 21:34:30 -0500
I have placed the following code taken from an example in a tech note on the develop.apple.com site
float (^distanceTraveled) (float, float, float) = | ^(float startingSpeed, float acceleration, float time) { | | float distance = (startingSpeed * time) + (0.5 * acceleration * time * time); | return distance; | }; |
which results in the following error when compiled
expected identifier or '(' before '^' token
What's up? It's Apple's sample code. Is there a setting I'm missing to allow this syntax?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden