[swift-users] Can't initialise using a UTF8 string from within 'withUnsafeBufferPointer' expression
Brent Royal-Gordon
brent at architechies.com
Mon Jul 18 20:37:59 CDT 2016
> On Jul 18, 2016, at 11:44 AM, Karl via swift-users <swift-users at swift.org> wrote:
>
> Also, as interesting as that may be, I’m also curious what to do in the general case for types without magic compiler optimisations.
Wait for Swift 4, apparently: https://github.com/apple/swift-evolution/blob/master/proposals/0073-noescape-once.md#rationale
Or use a class method, or two-phase initialization, or some other trick to get around this limitation.
--
Brent Royal-Gordon
Architechies
More information about the swift-users
mailing list