OK, we should fix the function signature to make it identical then (currently it does not take an argument list), and perhaps define NSLogv() as well.
> On 6 Jul 2016, at 8:36 PM, Chris Bailey <bail...@uk.ibm.com> wrote: > > The Darwin overlay contains: > > https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/Foundation.swift#L918 > > <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 > <swift-corelibs-dev@swift.org> > To: Luke Howard <lu...@padl.com> > Cc: swift-corelibs-dev@swift.org > Date: 06/07/2016 00:57 > Subject: Re: [swift-corelibs-dev] Query on NSLog > Sent by: swift-corelibs-dev-boun...@swift.org > > > > 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 <lu...@padl.com > <mailto:lu...@padl.com>> 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 > <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> 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 > <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> 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 > swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org> > https://lists.swift.org/mailman/listinfo/swift-corelibs-dev > <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev> > > _______________________________________________ > swift-corelibs-dev mailing list > swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org> > https://lists.swift.org/mailman/listinfo/swift-corelibs-dev > <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev> > > -- > www.lukehoward.com <http://www.lukehoward.com/> > soundcloud.com/lukehoward <http://soundcloud.com/lukehoward> > > _______________________________________________ > swift-corelibs-dev mailing list > swift-corelibs-dev@swift.org > https://lists.swift.org/mailman/listinfo/swift-corelibs-dev > <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev> > > -- www.lukehoward.com soundcloud.com/lukehoward
_______________________________________________ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev