In Swift, the ampersand sign &is for parameters inout. how
Value var = 3
func inoutfunc (inout onlyPara: Int) {
onlyPara ++
}
inoutfunc (& value) // value is now 4
It doesnβt look like it onlyParais a pointer, it is possible that it exists and gets played immediately when using it inside a function.
Is only a Para a pointer?
When I do not need the type IntPointer, why the structure type methods use NSErrorPointer? . Because they cannot change methods due to existing Objective-C code?
But why then does Swift convert &errortoNSErrorPointer , is it autoboxed?
var errorPtr: NSErrorPointer = & error
NSErrorPointer. ?
var: NSError = * errorPtr//
- . Swift . , - & Objective-C ( )