[swift-evolution] Unmanaged, and COpaquePointer vs. Unsafe(Mutable)Pointer
jgroff at apple.com
Tue Dec 8 18:05:01 CST 2015
> On Dec 8, 2015, at 4:03 PM, Jacob Bandes-Storch <jtbandes at gmail.com> wrote:
> Thanks, Jordan. I'll write one up tonight.
> Should it use UnsafePointer or UnsafeMutablePointer? I've seen that C APIs frequently get imported as UnsafeMutablePointer, when it doesn't necessarily match the semantics of the API. Is that just the default?
A 'void *' in C is mutable by default, yeah.
More information about the swift-evolution