> On 24 Dec 2015, at 9:37 AM, Jordan Rose <jordan_r...@apple.com> wrote:
> 
> No, we cannot encode things "non-mangled but with the namespace". For any 
> type other than top-level non-generic class types, using a non-mangled name 
> is not unique. The only correct answer for arbitrary classes is to use 
> mangled names, or something that maps one-to-one with mangled names.

Ah, thanks for pointing this out!

NSClassFromString() – which it appears Foundation uses when coding – returns a 
non-mangled name for a one/top-level non-generic class type (e.g. 
“scoderTest.CodableTest”) but otherwise the mangled type name (e.g. 
“_TtCC10scoderTest11CodableTest6Nested”).

Is there an equivalent function in Swift stdlib?

— Luke
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to