Re: [swift-users] Check deployment target at runtime or compile time

2017-02-15 Thread Ole Begemann via swift-users
> On 15 Feb 2017, at 20:40, Greg Parker wrote: > >> On Feb 15, 2017, at 11:11 AM, Ole Begemann via swift-users >> wrote: >> >> In macOS 10.12 and iOS 10.0, class properties were introduced to Objective-C >> [1]. I noticed that the Objective-C runtime treats class properties >> differently b

Re: [swift-users] Check deployment target at runtime or compile time

2017-02-15 Thread Greg Parker via swift-users
> On Feb 15, 2017, at 11:11 AM, Ole Begemann via swift-users > wrote: > > In macOS 10.12 and iOS 10.0, class properties were introduced to Objective-C > [1]. I noticed that the Objective-C runtime treats class properties > differently based on the deployment target. Example: > >// MyClas

[swift-users] Check deployment target at runtime or compile time

2017-02-15 Thread Ole Begemann via swift-users
In macOS 10.12 and iOS 10.0, class properties were introduced to Objective-C [1]. I noticed that the Objective-C runtime treats class properties differently based on the deployment target. Example: // MyClass is an Objective-C class that has a class property let metaclass = object_getCl