[swift-dev] ExistentialMetatypeType assertion failure on Linux

Philippe Hausler phausler at apple.com
Wed Dec 30 17:24:22 CST 2015

> On Dec 30, 2015, at 3:21 PM, Joe Groff via swift-dev <swift-dev at swift.org> wrote:
>> On Dec 30, 2015, at 2:41 PM, Luke Howard <lukeh at padl.com> wrote:
>>>> It looks like you're trying to poke at private runtime metadata structures; please don't do that. What are you trying to do?
>>> Per our exchange yesterday – implement NSStringFromClass() heuristics for NSKeyedArchiver
>> Sorry I mean NSClassFromString(). I thought indirecting the lookup through the metadata accessor was at least a little bit less bad than accessing it directly. :)
> If you're experimenting privately that's OK, but I'd prefer to get the runtime functionality in place before committing anything. We already have our hands full trying to clean up and stabilize the standard library/runtime interfaces.
> -Joe
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

Yep and that is why I am holding off on merging this just yet until we can get something up and rolling from the stdlib to support this.
For now we could just limit these to the list of hand coded class to string conversions and omit the NSStringFromClass/NSClassFromString transform; that way we give the stdlib a bit of time to get back on their feet from the break and get this code in.

More information about the swift-dev mailing list