On Jun 23, 2016, at 2:23 AM, Félix Cloutier via swift-evolution 
<[email protected]> wrote:

> Do we lose the ability to create a signed integer from an unsigned bit 
> pattern?

The existing `init(bitPattern x: UIntN)` are still present on the concrete 
types in the prototype.  There’s a new init at the Protocol level that handles 
the fully generic case:

/// Creates in instance of `Self` from `source` by sign-extending it
/// indefinitely and then truncating to fit `Self`.
init<T : Integer>(extendingOrTruncating source: T)

– Steve
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to