Re: [swift-users] How to create an uninitialized pointer in Swift 3

2016-09-16 Thread Lane Schwartz via swift-users
Thank you so much. That's exactly what I needed! Lane ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] How to create an uninitialized pointer in Swift 3

2016-09-16 Thread Martin R via swift-users
In Swift 3, COpaquePointer was renamed to OpaquePointer, and nullable pointers are represented by optionals: SE-0055 – Make unsafe pointer nullability explicit using Optional https://github.com/apple/swift-evolution/blob/master/proposals/0055-optional-unsafe-pointers.md So the following sho

[swift-users] How to create an uninitialized pointer in Swift 3

2016-09-15 Thread Lane Schwartz via swift-users
In Swift 2.2, I could do the following: var cublasHandle : COpaquePointer = nil let status = cublasCreate_v2(&cublasHandle) Where cublasCreate_v2 is a C function that takes a pointer, and then initializes some memory at that address. I haven't been able to figure out an equivalent in Swift 3. An