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