The Darwin overlay contains:

https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/Foundation.swift#L918
:
public func NSLog(_ format: String, _ args: CVarArg...) {
  withVaList(args) { NSLogv(format, $0) }
}

So for consistency it would make sense to expose it on other platforms as 
well.

Chris




From:   Tony Parker via swift-corelibs-dev <[email protected]>
To:     Luke Howard <[email protected]>
Cc:     [email protected]
Date:   06/07/2016 00:57
Subject:        Re: [swift-corelibs-dev] Query on NSLog
Sent by:        [email protected]



Frankly, I think I just forgot to put a stub for it when we put out the 
first set of APIs.

- Tony

On Jul 5, 2016, at 4:54 PM, Luke Howard <[email protected]> wrote:

I added NSLog for NSKeyedArchiver so the output formatting would more 
closely match Darwin, but I punted whether to make it public.

On 6 Jul 2016, at 5:42 AM, Tony Parker via swift-corelibs-dev <
[email protected]> wrote:

Hi Sai,

Out of curiosity, why NSLog instead of Swift’s print function?

- Tony

On Jun 27, 2016, at 4:37 AM, Sai Kanduri via swift-corelibs-dev <
[email protected]> wrote:

Hi All,
 
Currently NSLog  has only one internal function  NSLog()  which can be 
used only by Foundation classes.Can this be made available as a public API 
?
 
 
Thanks & Regards,
 
Sai Hema,Java L3 Support

_______________________________________________
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

--
www.lukehoward.com
soundcloud.com/lukehoward

_______________________________________________
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev



_______________________________________________
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to