Totally reasonable since that is a limitation that will cause subclassers to 
not be able to implement that even outside of Foundation.

What would help most for unit testing what you have so far?

I have a few init?(coder:) implementations that should match the 
implementations on darwin; primarily I was focused on getting the plist types 
done first and then moving onto the other classes.


> On Dec 26, 2015, at 6:01 AM, Luke Howard <lu...@padl.com> wrote:
> 
> Another language thing I ran into – using classForKeyedArchiver/classForCoder 
> is impossible because declarations from extensions cannot be overridden yet.
> 
> For example I’d like to do:
> 
> internal class _NSCFString : NSMutableString {
> … 
>     override var classForCoder: AnyClass {
>         return NSMutableString.self
>     }
> }
> 
> There are a few ways I can work around it but perhaps we can put these 
> extensions directly on NSObject for now?
> 
> — Luke

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

Reply via email to