> On Jul 26, 2015, at 4:50 PM, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> No. Swift doesn’t convert between numeric types automatically, so Double —> 
> CGFloat produces an error.

I’m guessing this is only a problem when building 32-bit? Because in 64-bit, 
CGFloat is equivalent to Double, so there shouldn’t be a problem there.

Rick: You could just define your own CGFloat constant equal to M_PI. (You could 
even name it π …!)

—Jens
_______________________________________________

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