Skip to content

Conversation

@tbkka
Copy link
Collaborator

@tbkka tbkka commented Sep 19, 2017

Swift 4 prerelease (until Xcode 9 beta 4 at least) has been using the
former name for the truncating initializer and just recently switched
to the latter term.

Unlike PR#662, this also updates MathUtils.swift so that we
preserve compatibility with Swift 3. It also omits any changes
to the xcodeproj files.

Tested using command-line tools with Xcode 8.1, 8.2., 8.3, and 9.0 GM Seed (9A235).

Swift 4 prerelease (until Xcode 9 beta 4 at least) has been using the
former name for the truncating initializer and just recently switched
to the latter term.

Unlike PR#662, this also updates MathUtils.swift so that we
preserve compatibility with Swift 3.  It also omits any changes
to the xcodeproj files.
#if !swift(>=4.0)
//
// Swift 3 called this initializer "truncatingBitPattern";
// Swift 4 (prerelease) changed this initializer to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe drop the "(prerelease)" part since I doubt it is changing again?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@tbkka tbkka merged commit 5a77a1a into apple:master Sep 19, 2017
@tbkka tbkka deleted the swift-4-truncating-init branch November 3, 2017 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants