<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div style="font-family:Arial;">For a wrapper, are there any public hooks into dyld that allow us to do anything meaningful with #dsoHandle on prior OS? Without that, and without using #dsoHandle, wrapping os_log is essentially useless.<br></div>
<div style="font-family:Arial;"><br></div>
<div id="sig40804545"><div class="signature"><span class="font" style="font-family:arial, sans-serif, sans-serif">Cheers!</span><span class="font" style="font-family:arial, sans-serif, sans-serif"></span><br></div>
<div class="signature"><span class="font" style="font-family:arial, sans-serif, sans-serif">&nbsp; Zachary Waldowski</span><span class="font" style="font-family:arial, sans-serif, sans-serif"></span><br></div>
<div class="signature"><span class="font" style="font-family:arial, sans-serif, sans-serif">&nbsp;&nbsp;</span><a href="mailto:zach@waldowski.me"><span class="font" style="font-family:arial, sans-serif, sans-serif">zach@waldowski.me</span></a><br></div>
</div>
<div><br></div>
<div><br></div>
<div>On Mon, Sep 5, 2016, at 10:59 AM, Douglas Gregor via swift-evolution wrote:<br></div>
<blockquote type="cite"><div><div style="direction:inherit;"><br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Sent from my iPhone<br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">On Sep 4, 2016, at 11:48 PM, Goffredo Marocchi &lt;<a href="mailto:panajev@gmail.com">panajev@gmail.com</a>&gt; wrote:<br></div>
</div>
<blockquote type="cite"><div><div><div style="direction:inherit;">Hey Doug,<br></div>
<div style="direction:inherit;"><br></div>
<div style="direction:inherit;">How do I use it in Swift code without a wrapper, which is understandably a bit pointless, if I still support iOS 9?<br></div>
</div>
</div>
</blockquote><div style="direction:inherit;"><br></div>
<div style="direction:inherit;">#if or a wrapper are your best options.&nbsp;<br></div>
<div style="direction:inherit;"><br></div>
<div style="direction:inherit;">&nbsp; - Doug<br></div>
<div style="direction:inherit;"><br></div>
<blockquote type="cite"><div><div><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Sent from my iPhone<br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">On 5 Sep 2016, at 05:05, Brandon Knope via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div>
</div>
<blockquote type="cite"><div><div><div style="direction:inherit;">Where should the lack of {public} be reported then?<br></div>
<div style="direction:inherit;"><br></div>
<div style="direction:inherit;">This seems like it falls under jira and not radar because it's in swift open source but I'm not 100 percent&nbsp;<br></div>
<div style="direction:inherit;"><br></div>
<div style="direction:inherit;">Brandon&nbsp;<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Sent from my iPad<br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">On Sep 4, 2016, at 11:48 PM, Douglas Gregor &lt;<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>&gt; wrote:<br></div>
</div>
<blockquote type="cite"><div><div><div style="direction:inherit;"><br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Sent from my iPhone<br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">On Sep 3, 2016, at 11:32 AM, Ben Rimmington via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div>
</div>
<blockquote type="cite"><div><div style="font-family:Arial;"><br></div>
<div><blockquote type="cite"><div>On 3 Sep 2016, at 19:13, Brandon Knope &lt;<a href="mailto:bknope@me.com">bknope@me.com</a>&gt; wrote:<br></div>
<div style="font-family:Arial;"><br></div>
<div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;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;direction:inherit;">Thank you! I was looking for this last night and failed.&nbsp;<br></div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;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;direction:inherit;"><br></div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;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;direction:inherit;">Why do you think {public} isn't included?<br></div>
</div>
</blockquote></div>
<div style="font-family:Arial;"><br></div>
<div><div>I don't know, but trying to reimplement <span class="colour" style="color:rgb(62, 30, 129)">__builtin_os_log_format</span> in the overlay seems wrong. It would be better to have a variant of <span class="colour" style="color:rgb(62, 30, 129)">__builtin_os_log_format</span> which takes a <span class="colour" style="color:rgb(112, 61, 170)">va_list</span>.<br></div>
</div>
</div>
</blockquote><div style="direction:inherit;"><br></div>
<div style="direction:inherit;"><br></div>
<div style="direction:inherit;">__builtin_os_log_format is implemented by Clang, not a library, and is quite involved. Implementing os_log in an overlay to provide near feature-compatibility with the C API is the right approach for Swift 3, where a more comprehensive solution (say, a general logging API based on string interpolation or similar) is way out of scope.&nbsp;<br></div>
<div style="direction:inherit;"><br></div>
<div style="direction:inherit;">&nbsp; - Doug<br></div>
<div style="direction:inherit;"><br></div>
<div style="direction:inherit;"><br></div>
<blockquote type="cite"><div><div><div><br></div>
<div>-- Ben<br></div>
</div>
<div><br></div>
</div>
</blockquote><blockquote type="cite"><div><div style="font-family:Arial;"><span>_______________________________________________</span><br></div>
<div style="font-family:Arial;"><span>swift-evolution mailing list</span><br></div>
<div style="font-family:Arial;"><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br></div>
<div style="font-family:Arial;"><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div>
</div>
</blockquote></div>
</blockquote></div>
</blockquote><blockquote type="cite"><div><div style="font-family:Arial;"><span>_______________________________________________</span><br></div>
<div style="font-family:Arial;"><span>swift-evolution mailing list</span><br></div>
<div style="font-family:Arial;"><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br></div>
<div style="font-family:Arial;"><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div>
</div>
</blockquote></div>
</blockquote><div><u>_______________________________________________</u><br></div>
<div>swift-evolution mailing list<br></div>
<div><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br></div>
<div><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div>
</blockquote><div style="font-family:Arial;"><br></div>
</body>
</html>