[swift-evolution] Proposal: Introduce User-defined "Dynamic Member Lookup" Types
    Chris Lattner 
    clattner at nondot.org
       
    Tue Dec 12 14:42:20 CST 2017
    
    
  
> On Dec 12, 2017, at 9:26 AM, C. Keith Ray <keithray at mac.com> wrote:
> 
> in https://gist.github.com/lattner/b016e1cf86c43732c8d82f90e5ae5438 <https://gist.github.com/lattner/b016e1cf86c43732c8d82f90e5ae5438>
> 
> there is this statement:
> 
> "For this reason, the compiler only permits conformance of this protocol on the original type definition, not extensions"
> 
> and this example:
> 
> extension JSON : DynamicMemberLookupProtocol {
> 
> 
> Contradictory?
Yes, thanks for catching that, I fixed the proposal to not describe these as extensions.
> Calling Java from C is done like the following, how would one do it in Swift using this proposal?
I’m not sure what your question is.  I’m not an expert in JNI interop.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171212/932f592f/attachment.html>
    
    
More information about the swift-evolution
mailing list