Avatar
↓の UnsafeMutablePointerUnsafePointer 型の引数に渡せるのってなんでなんでしたっけ? var a = 42 let p = UnsafeMutablePointer(&a) func foo(_ p: UnsafePointer<Int>) { print(p.pointee) } foo(p)
2:58 PM
↓これはできないのに。 let p2: UnsafePointer<Int> = p