<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 12, 2017, at 9:26 AM, C. Keith Ray &lt;<a href="mailto:keithray@mac.com" class="">keithray@mac.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font style="font-size: 14px;" class="">in&nbsp;<a href="https://gist.github.com/lattner/b016e1cf86c43732c8d82f90e5ae5438" class="">https://gist.github.com/lattner/b016e1cf86c43732c8d82f90e5ae5438</a></font><div class=""><font style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font style="font-size: 14px;" class="">there is this statement:</font></div><div class=""><font style="font-size: 14px;" class=""><br class=""></font></div><div class=""><div class=""><span style="font-size: 14px;" class=""><span style="background-color: rgb(255, 255, 255);" class="">"</span><span style="background-color: rgb(255, 255, 255);" class="">For this reason, the compiler only permits conformance of this protocol on the original type definition, not extensions"</span></span></div><div class=""><span style="background-color: rgb(255, 255, 255); font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="background-color: rgb(255, 255, 255); font-size: 14px;" class="">and this example:</span></div></div><div class=""><span style="background-color: rgb(255, 255, 255); font-size: 14px;" class=""><br class=""></span></div><div class=""><pre style="box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: rgb(246, 248, 250); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal;" class=""><font face="Lucida Grande" style="font-size: 14px;" class=""><span class="pl-k" style="box-sizing: border-box;">extension</span> <span class="pl-en" style="box-sizing: border-box;">JSON</span> : <span class="pl-e" style="box-sizing: border-box;">DynamicMemberLookupProtocol </span>{
</font></pre></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">Contradictory?</span></div></div></div></blockquote><div><br class=""></div><div>Yes, thanks for catching that, I fixed the proposal to not describe these as extensions.</div><div><br class=""></div><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span style="font-size: 14px;" class="">Calling Java from C is done like the following, how would one do it in Swift using this proposal?</span></div></div></blockquote><br class=""></div><div>I’m not sure what your question is. &nbsp;I’m not an expert in JNI interop.</div><div><br class=""></div><div>-Chris</div><div><br class=""></div><br class=""></body></html>