• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Swift struggles with arithmetic ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swift struggles with arithmetic ?


  • Subject: Swift struggles with arithmetic ?
  • From: Gavin Eadie <email@hidden>
  • Date: Sat, 29 Aug 2015 16:05:33 -0400

Apologies if off-topic, but Swift appears a lot on cocoa-dev, so maybe it’s OK

I’ve been using Swift and moving some Obj-C code over to it, but I’m concerned that it thinks this is “too complex to be solved in reasonable time”:

    import Foundation
    let y = 1.0 * sin(1.0) + 1.0 * sin(1.0) + 1.0 * sin(1.0)

The above is simplified from the original (original didn’t have constants under the sin function).  Swift 2.0 (Version 7.0 beta 6) reports a fatal error and suggests breaking down the expression which, of course, I can do but.  I’ve not seen any reports of such behavior on this list or elsewhere; have you?

There’s a Radar report for this filed against Swift 1.2 (and updated for 2.0).
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Swift struggles with arithmetic ?
      • From: Charles Srstka <email@hidden>
    • Re: Swift struggles with arithmetic ?
      • From: Quincey Morris <email@hidden>
References: 
 >setting tab stops in swift (From: Boyd Collier <email@hidden>)
 >Re: setting tab stops in swift (From: Jens Alfke <email@hidden>)
 >Re: setting tab stops in swift (From: Boyd Collier <email@hidden>)
 >Re: setting tab stops in swift (From: Jens Alfke <email@hidden>)
 >Re: setting tab stops in swift (From: Quincey Morris <email@hidden>)
 >Re: setting tab stops in swift (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Impossible leak warning in OS X init method
  • Next by Date: Re: Swift struggles with arithmetic ?
  • Previous by thread: Re: setting tab stops in swift
  • Next by thread: Re: Swift struggles with arithmetic ?
  • Index(es):
    • Date
    • Thread