I am trying to run some Swift code that relies on Foundation on Linux
(it is thoughtbot's Argo library if anyone wants to know the exact
code).

There is a fairly simple extension to NSNumber that looks like:

import Foundation

extension NSNumber {
  var isBool: Bool {
    return CFBooleanGetTypeID() == CFGetTypeID(self)
  }
}

However it seems that Foundation on Linux has neither
`CFBooleanGetTypeID` or `CFGetTypeID`.

Is this expected?
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to