[swift-dev] Emitting redundant protocol conformances to support type lookup
jgroff at apple.com
Wed Jan 13 11:32:07 CST 2016
> On Jan 12, 2016, at 7:46 PM, Luke Howard via swift-dev <swift-dev at swift.org> wrote:
> Would it be possible to extend GenericParameterDescriptor to include a tail-emplaced set of references to ProtocolDescriptors for any parameter type constraints that require witness tables? This would be useful plumbing for a future API that can dynamically instantiate generic types.
> https://github.com/lhoward/swift/blob/SR-381/include/swift/Runtime/Metadata.h#L1199 <https://github.com/lhoward/swift/blob/SR-381/include/swift/Runtime/Metadata.h#L1199>
> https://github.com/lhoward/swift/blob/SR-381/stdlib/public/runtime/MetadataLookup.cpp#L338 <https://github.com/lhoward/swift/blob/SR-381/stdlib/public/runtime/MetadataLookup.cpp#L338>
That's something to consider. However, we will be systematically revamping these metadata structures soon, so I don't think there's much benefit to incrementally changing what we have.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev