<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><div class=""><div class="">On Jun 23, 2016, at 2:23 AM, Félix Cloutier via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"></div><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Do we lose the ability to create a signed integer from an unsigned bit pattern?</span></div></blockquote><div><br class=""></div>The existing `init(bitPattern x: UIntN)` are still present on the concrete types in the prototype. &nbsp;There’s a new init at the Protocol level that handles the fully generic case:<br class=""><br class=""></div><div><pre style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.600000381469727px; margin-top: 0px; margin-bottom: 0px; line-height: 1.45; word-wrap: normal; padding: 16px; overflow: auto; background-color: rgb(247, 247, 247); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; color: rgb(51, 51, 51);" class=""><span class="pl-c" style="box-sizing: border-box; color: rgb(150, 152, 150);">/// Creates in instance of `Self` from `source` by sign-extending it</span>
<span class="pl-c" style="box-sizing: border-box; color: rgb(150, 152, 150);">/// indefinitely and then truncating to fit `Self`.</span>
<span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">init</span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">&lt;</span>T <span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">:</span> Integer<span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">&gt;</span>(extendingOrTruncating source: T)</pre><div class=""><br class=""></div><div class="">– Steve</div></div></body></html>