> On Jul 28, 2017, at 4:07 PM, Jordan Rose via swift-dev <swift-dev@swift.org> 
> wrote:
> 
> My point is we can't use our usual mangling in the string, because that 
> contains type names.
> 

We could invent a ‘mangling’ format (either using the existing demangler with a 
special flag or something else) where types inside the module are encoded as a 
pointer to a nominal type descriptor or something.

This would be useful for remote reflection as well, for secrecy and efficiency 
reasons.

Also being able to build metadata from a mangling will allow the standard 
library’s Mirror type to use the reflection metadata, instead of a ‘field type 
accessor’ which is emitted by IRGen for each value type, saving on code size.

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

Reply via email to