Re: [swift-corelibs-dev] Foundation and NSDecimal

2016-09-28 Thread Alex Blewitt via swift-corelibs-dev
I agree, but I'm not sure where that's coming from. It seems to be being imported from CoreFoundation on Darwin, and although it's defined this way in NSDecimal.h in the Foundation framework: NS_INLINE BOOL NSDecimalIsNotANumber(const NSDecimal *dcm) { return ((dcm->_length == 0) && dcm->_isNe

Re: [swift-corelibs-dev] Foundation and NSDecimal

2016-09-28 Thread Kenny Leung via swift-corelibs-dev
I would also say that this should not be marked as @discardableResult, since its only purpose is to report back yes or no, it would be kind of suspicious if the it wasn’t used. -Kenny > On Sep 27, 2016, at 5:34 AM, Alex Blewitt via swift-corelibs-dev > wrote: > > The Framework function >