Hey everyone,

One of the things that came up in a code review today was the type of KVO's 
context param. If you look at the function signature it gets imported as 
UnsafeMutableRawPointer?. Is there ever a need to mutate this parameter, and if 
not can we change it to be UnsafeRawPointer? instead?

We commonly define a constant (e.g. kvoContext = 0) to pass in, but in Swift we 
have to make it mutable (which we'd rather not do). Is there another 
workaround? How is everyone else handling this? (We avoid KVO whenever 
possible, but some APIs require it.)

Thanks,

-Tyler
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to