> On Jul 26, 2015, at 16:34 , Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> On Jul 26, 2015, at 16:29 , Rick Mann <rm...@latencyzero.com> wrote:
>> 
>> addArc(CGPoint(x: 0, y: 0), 50.0, 0.0, M_PI)
> 
> The problem in this case is that M_PI is a Double variable in Swift, not a 
> compile time constant like in Obj-C. You will unfortunately have to wrap it 
> in CGFloat(), then the constants should work fine.

So, is a literal 0.0 not of type Double?

And can CGFloat be made to be implicitly assignable from Double?


-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

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