> On Jul 31, 2017, at 9:21 AM, Erik Eckstein <eeckst...@apple.com> wrote:
> 
> Would it be possible that whenever a specialized class is instantiated and 
> the metadata already exists with a generic vtable, it just overwrites the 
> vtable pointer in the metadata with the specialized version?
> I didn’t think that through, but maybe the same could be done for witness 
> tables?

Sure, we could redirect tables at runtime. It would require more runtime 
infrastructure, though we can't really get around uniquing vtables for classes, 
so that might be unavoidable.

-Joe
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to