<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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.<div class=""><br class=""><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On 6 Jul 2016, at 8:36 PM, Chris Bailey <<a href="mailto:BAILEYC@uk.ibm.com" class="">BAILEYC@uk.ibm.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><font size="2" face="sans-serif" class="">The Darwin overlay contains:</font>
<br class="">
<br class=""><a href="https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/Foundation.swift#L918" class=""><font size="2" color="blue" face="sans-serif" class="">https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/Foundation.swift#L918</font></a><font size="2" face="sans-serif" class="">:</font>
<br class=""><font size="2" face="Courier New" class="">public func NSLog(_ format: String,
_ args: CVarArg...) {</font>
<br class=""><font size="2" face="Courier New" class=""> withVaList(args) { NSLogv(format,
$0) }</font>
<br class=""><font size="2" face="Courier New" class="">}</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">So for consistency it would make sense
to expose it on other platforms as well.</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">Chris<br class="">
</font>
<br class="">
<br class="">
<br class="">
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">From:
</font><font size="1" face="sans-serif" class="">Tony Parker via swift-corelibs-dev
<<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>></font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">To:
</font><font size="1" face="sans-serif" class="">Luke Howard <<a href="mailto:lukeh@padl.com" class="">lukeh@padl.com</a>></font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Cc:
</font><font size="1" face="sans-serif" class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a></font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Date:
</font><font size="1" face="sans-serif" class="">06/07/2016 00:57</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Subject:
</font><font size="1" face="sans-serif" class="">Re: [swift-corelibs-dev]
Query on NSLog</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Sent by:
</font><font size="1" face="sans-serif" class=""><a href="mailto:swift-corelibs-dev-bounces@swift.org" class="">swift-corelibs-dev-bounces@swift.org</a></font>
<br class="">
<hr noshade="" class="">
<br class="">
<br class="">
<br class=""><font size="3" class="">Frankly, I think I just forgot to put a stub for it when
we put out the first set of APIs.</font>
<br class="">
<br class=""><font size="3" class="">- Tony</font>
<br class="">
<br class=""><font size="3" class="">On Jul 5, 2016, at 4:54 PM, Luke Howard <</font><a href="mailto:lukeh@padl.com" class=""><font size="3" color="blue" class=""><u class="">lukeh@padl.com</u></font></a><font size="3" class="">>
wrote:</font>
<br class="">
<br class=""><font size="3" class="">I added NSLog for NSKeyedArchiver so the output formatting
would more closely match Darwin, but I punted whether to make it public.</font>
<br class="">
<br class=""><font size="3" class="">On 6 Jul 2016, at 5:42 AM, Tony Parker via swift-corelibs-dev
<</font><a href="mailto:swift-corelibs-dev@swift.org" class=""><font size="3" color="blue" class=""><u class="">swift-corelibs-dev@swift.org</u></font></a><font size="3" class="">>
wrote:</font>
<br class="">
<br class=""><font size="3" class="">Hi Sai,</font>
<br class="">
<br class=""><font size="3" class="">Out of curiosity, why NSLog instead of Swift’s print
function?</font>
<br class="">
<br class=""><font size="3" class="">- Tony</font>
<br class="">
<br class=""><font size="3" class="">On Jun 27, 2016, at 4:37 AM, Sai Kanduri via swift-corelibs-dev
<</font><a href="mailto:swift-corelibs-dev@swift.org" class=""><font size="3" color="blue" class=""><u class="">swift-corelibs-dev@swift.org</u></font></a><font size="3" class="">>
wrote:</font>
<br class="">
<br class=""><font size="2" face="Arial" class="">Hi All,</font>
<br class=""><font size="2" face="Arial" class=""> </font>
<br class=""><font size="2" face="Arial" class="">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 ?</font>
<br class=""><font size="2" face="Arial" class=""> </font>
<br class=""><font size="2" face="Arial" class=""> </font>
<br class=""><font size="2" face="Arial" class="">Thanks & Regards,</font>
<br class=""><font size="2" face="Arial" class=""> </font>
<br class=""><font size="2" face="Arial" class="">Sai Hema,Java L3 Support</font>
<br class=""><font size="3" class=""><br class="">
_______________________________________________<br class="">
swift-corelibs-dev mailing list</font><font size="3" color="blue" class=""><u class=""><br class="">
</u></font><a href="mailto:swift-corelibs-dev@swift.org" class=""><font size="3" color="blue" class=""><u class="">swift-corelibs-dev@swift.org</u></font></a><font size="3" color="blue" class=""><u class=""><br class="">
</u></font><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class=""><font size="3" color="blue" class=""><u class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</u></font></a>
<br class="">
<br class=""><font size="3" class="">_______________________________________________<br class="">
swift-corelibs-dev mailing list</font><font size="3" color="blue" class=""><u class=""><br class="">
</u></font><a href="mailto:swift-corelibs-dev@swift.org" class=""><font size="3" color="blue" class=""><u class="">swift-corelibs-dev@swift.org</u></font></a><font size="3" color="blue" class=""><u class=""><br class="">
</u></font><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class=""><font size="3" color="blue" class=""><u class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</u></font></a>
<br class="">
<br class=""><font size="3" class="">--</font>
<br class=""><a href="http://www.lukehoward.com/" class=""><font size="3" color="blue" class=""><u class="">www.lukehoward.com</u></font></a><font size="3" color="blue" class=""><u class=""><br class="">
</u></font><a href="http://soundcloud.com/lukehoward" class=""><font size="3" color="blue" class=""><u class="">soundcloud.com/lukehoward</u></font></a>
<br class="">
<br class=""><tt class=""><font size="2" class="">_______________________________________________<br class="">
swift-corelibs-dev mailing list<br class="">
<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">
</font></tt><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class=""><tt class=""><font size="2" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></tt></a><tt class=""><font size="2" class=""><br class="">
</font></tt>
<br class="">
<br class="">
</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: 'Akzidenz-Grotesk BQ'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">--</div><div class=""><font face="Akzidenz-Grotesk BQ" size="3" class=""><a href="http://www.lukehoward.com" class="">www.lukehoward.com</a><br class="">soundcloud.com/lukehoward</font></div></div></span></div></span></div></div></div>
</div>
<br class=""></div></div></div></body></html>