Re: [swift-users] Law of Exclusivity runtime false positive?

2017-07-27 Thread Kyle Murray via swift-users
Hi David, Are padding or spacing computed properties that access either rectangle? They aren't defined in your stripped down code. For example: var spacing: CGFloat { return imageRect.maxX } Without doing something like that, I don't see the same access conflicts that you're seeing.

[swift-users] Law of Exclusivity runtime false positive?

2017-07-27 Thread David Hart via swift-users
Hello, In Xcode 9 beta 4, Swift 4, I’m getting runtime errors popping up for Simultaneous accesses and I think they may be false negatives. Here’s a stripped down version of my code: class MyButton: UIButton { fileprivate var imageRect: CGRect = .zero fileprivate var titleRect:

Re: [swift-users] Swift linux repl can't import

2017-07-27 Thread Alex Blewitt via swift-users
For the mail (so it's easier to find than in a bug tracking system) the fix is to specify the clang include headers either with an -I on the swift invocation command line, or via the variables C_INCLUDE_PATH and CPLUS_INCLUDE_PATH setting the C_INCLUDE_PATH and CPLUS_INCLUDE_PATH environment