<font face="Verdana,Arial,Helvetica,sans-serif" size="2"><div>Sorry for intruding!</div><div><br></div><div>I have the same question about /*@NSCopying*/ &nbsp;<br><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><font><font><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;"><br><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Pushkar N Kulkarni,</font></div>
<div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="serif, Times New Roman, Times, serif"><i>Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;"><br></div></div></div></div></font></font></font></div><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" color="#000000"><font color="#990099"><a href="mailto:-----swift-corelibs-dev-bounces@swift.org" target="_blank">-----swift-corelibs-dev-bounces@swift.org</a> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Daniel Eggert &lt;<a href="mailto:danieleggert@me.com" target="_blank">danieleggert@me.com</a>&gt;<br>From: Philippe Hausler via swift-corelibs-dev <swift-corelibs-dev@swift.org><br>Sent by: <a href="mailto:swift-corelibs-dev-bounces@swift.org" target="_blank">swift-corelibs-dev-bounces@swift.org</a><br>Date: 03/17/2016 08:12PM<br>Cc: Swift corelibs dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>&gt;<br>Subject: Re: [swift-corelibs-dev] non-inherited init<br><br><div><font face="Courier New,Courier,monospace" size="3">That is a comment emitted by the importer, unfortunately it is impossible for non objc to mimic that behavior 100% because it is an init method that is constructed from a class method.<br><br>@interface Foo : NSObject<br>+ (Foo *)fooNamed:(NSString *)name; // this is not an inherited init method in that it will always return an instance of a Foo no matter the subclass it is called from<br>@end<br><br>@interface Bar : Foo<br>@end<br><br>// in objc it is like this:<br>Foo *f = [Bar fooNamed:@“test”];<br><br>// in swift it is like this:<br>let f = Bar(named:”test”)<br><br>but obviously by the method fooNamed always returns a Foo instead of an instancetype because it actually looks up Foo objects from a table.<br><br>&gt; On Mar 17, 2016, at 7:35 AM, Daniel Eggert via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>&gt; wrote:<br>&gt; <br>&gt; There're some initializers (namely in NSURLSession) that have a comment:<br>&gt; <br>&gt; public /*not inherited*/ init(...<br>&gt; <br>&gt; What is this “not inherited” comment trying to convey, and how would one go about implementing this in Swift?<br>&gt; <br>&gt; /Daniel<br>&gt; <br>&gt; _______________________________________________<br>&gt; swift-corelibs-dev mailing list<br>&gt; <a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br>&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br><br>_______________________________________________<br>swift-corelibs-dev mailing list<br><a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br></font></div></swift-corelibs-dev@swift.org></div></div></font></font><BR>