<div dir="ltr"><div>Hi,</div><div><br></div><div>I confirmed that the release notes has been fixed.</div><div>Thanks!<br></div><div><br></div><div>Norio Nomura @norio_nomura</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-13 4:17 GMT+09:00  <span dir="ltr">&lt;<a href="mailto:ematejska@apple.com" target="_blank">ematejska@apple.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>On behalf of Apple..</div><div><br></div><div>This is an error in the release notes.   You’re not missing anything and Swift in Xcode 8.1 beta 2 is the same as Xcode 8.1 beta 3.  Sorry for the confusion and we’ll get the release notes fixed up.</div><div><br></div><div>Thanks,</div><div>Ewa</div><div><div class="h5"><div><br></div><div><br><div><blockquote type="cite"><div>On Oct 12, 2016, at 2:48 AM, Jens Persson via swift-dev &lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt; wrote:</div><br class="m_7282640038496956653Apple-interchange-newline"><div><div dir="ltr">I&#39;m wondering about this too.<div><br><div>Xcode 8.1 beta 3 doesn&#39;t seem to include any of the pointer-related stuff mentioned in the release notes section New in Xcode 8.1 beta 3 - Swift Compiler.</div><div><br></div><div>/Jens</div><div> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 12, 2016 at 2:13 AM, Norio Nomura via swift-dev <span dir="ltr">&lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The release notes of Xcode 8.1 beta 3 said:<div>&gt; <span style="font-size:11pt;font-family:myriadsetpro">Two types have been added to the Swift standard library: </span><span style="font-size:9pt;font-family:menlo;color:rgb(102,102,102)">UnsafeRawBufferPointer </span><span style="font-size:11pt;font-family:myriadsetpro">and
</span><span style="font-size:9pt;font-family:menlo;color:rgb(102,102,102)">UnsafeMutableRawBufferPointer</span><span style="font-size:11pt;font-family:myriadsetpro">.</span></div><div><br></div><div>But I&#39;m getting errors on building sample codes in release notes:</div><div>```</div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)"><b>➜  </b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)"><b>9:10:46 </b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)"><b> </b></span><span style="font-variant-ligatures:no-common-ligatures">DEVELOPER_DIR=/Applications/Xc<wbr>ode-beta.app swift</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Welcome to Apple Swift version 3.0.1 (swiftlang-800.0.56 clang-800.0.42). Type :help for assistance.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)">  1&gt; </span><span style="font-variant-ligatures:no-common-ligatures">struct Header { </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)">  2. </span><span style="font-variant-ligatures:no-common-ligatures">    var x: Int </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)">  3. </span><span style="font-variant-ligatures:no-common-ligatures">    var y: Float </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(169,169,169)"><span style="font-variant-ligatures:no-common-ligatures">  4. </span><span style="font-variant-ligatures:no-common-ligatures">} </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(169,169,169)"><span style="font-variant-ligatures:no-common-ligatures">  5. </span><span style="font-variant-ligatures:no-common-ligatures"> </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)">  6. </span><span style="font-variant-ligatures:no-common-ligatures">var header = Header(x: 0, y: 0.0) </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)">  7. </span><span style="font-variant-ligatures:no-common-ligatures">var byteBuffer = [UInt8]() </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)">  8. </span><span style="font-variant-ligatures:no-common-ligatures">withUnsafeBytes(of: &amp;header) { (bytes: UnsafeRawBufferPointer) in </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)">  9. </span><span style="font-variant-ligatures:no-common-ligatures">    byteBuffer += bytes </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(169,169,169)"><span style="font-variant-ligatures:no-common-ligatures"> 10. </span><span style="font-variant-ligatures:no-common-ligatures">} </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(169,169,169)"><span style="font-variant-ligatures:no-common-ligatures"> 11. </span><span style="font-variant-ligatures:no-common-ligatures"> </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)"> 12. </span><span style="font-variant-ligatures:no-common-ligatures">let intArray = [1, 2, 3] </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(169,169,169)"><span style="font-variant-ligatures:no-common-ligatures"> 13. </span><span style="font-variant-ligatures:no-common-ligatures"> </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)"> 14. </span><span style="font-variant-ligatures:no-common-ligatures">intArray.withUnsafeBytes { (bytes: UnsafeRawBufferPointer) in </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(169,169,169)"> 15. </span><span style="font-variant-ligatures:no-common-ligatures">    byteBuffer += bytes </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(169,169,169)"><span style="font-variant-ligatures:no-common-ligatures"> 16. </span><span style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">error: repl.swift:8:1: error: use of unresolved identifier &#39;withUnsafeBytes&#39;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">withUnsafeBytes(of: &amp;header) { (bytes: UnsafeRawBufferPointer) in</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">^~~~~~~~~~~~~~~</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">error: repl.swift:8:40: error: use of undeclared type &#39;UnsafeRawBufferPointer&#39;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">withUnsafeBytes(of: &amp;header) { (bytes: UnsafeRawBufferPointer) in</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">                                       ^~~~~~~~~~~~~~~~~~~~~~</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">error: repl.swift:14:36: error: use of undeclared type &#39;UnsafeRawBufferPointer&#39;</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">intArray.withUnsafeBytes { (bytes: UnsafeRawBufferPointer) in</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">                                   ^~~~~~~~~~~~~~~~~~~~~~</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(169,169,169)"><span style="font-variant-ligatures:no-common-ligatures">  1&gt; </span><span style="font-variant-ligatures:no-common-ligatures"> </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-family:arial,sans-serif;font-size:small">```</span><br></div></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Am I missing something needed for using them?</span></div><div><span style="font-variant-ligatures:no-common-ligatures">Thanks,</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><font>Norio Nomura @norio_nomura</font></div><div><font><br></font></div></div>
<br>______________________________<wbr>_________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-dev</a><br>
<br></blockquote></div><br></div>
______________________________<wbr>_________________<br>swift-dev mailing list<br><a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-dev</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>