[swift-users] Foundation on Linux `CFBooleanGetTypeID`/`CFGetTypeID`
Jens Alfke
jens at mooseyard.com
Tue May 24 16:07:59 CDT 2016
> On May 24, 2016, at 1:39 PM, Ryan Lovelett <swift-dev at ryan.lovelett.me> wrote:
>
> I have filed a bug https://bugs.swift.org/browse/SR-1610 <https://bugs.swift.org/browse/SR-1610>
>
> Obviously please reformat/update accordingly. This was the best I could come up with.
Your issue seems to be with the implicit conversion of NSNumber to a numeric type like Bool. This only happens on Apple platforms, and I think it’s going away in Swift 3. You should be able to work around it by casting to NSNumber, not Bool.
The problems I described with determining the type of the internal number, seem to be covered already as SR-72 <https://bugs.swift.org/browse/SR-72>.
—Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160524/8b2ef6f2/attachment.html>
More information about the swift-users
mailing list