withUnsafeMutableBufferPointer needs rethrows

Originator:robnapier
Number:rdar://21383164 Date Originated:15-Jun-2015 12:19 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift 2b1
Classification:Enhancement Reproducible:Always
 
It is currently not possible to throw from within a withUnsafeMutableBufferPointer (and related) closures. This makes error handling inside these blocks non-standard. These methods should be annotated rethrows so that they can deal with throwing closures.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!