Re: [swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread Игорь Никитин via swift-users
way, use class inheritance instead. >> >> Zhaoxin >> >> Get Outlook for iOS >> >> _____________ >> From: Rick Mann via swift-users >> Sent: 星期三, 十一月 16, 2016 07:51 >> Subject: Re: [swift-users] Attempting to call default protocol >> implem

Re: [swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread Игорь Никитин via swift-users
xtension is used as fail safe. You >>> should not consider it like something super class does. If you want it that >>> way, use class inheritance instead. >>> >>> Zhaoxin >>> >>> Get Outlook for iOS >>> >>> __

Re: [swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread Игорь Никитин via swift-users
, use class inheritance instead. >> >> Zhaoxin >> >> Get Outlook for iOS >> >> _________ >> From: Rick Mann via swift-users >> Sent: 星期三, 十一月 16, 2016 07:51 >> Subject: Re: [swift-users] Attempting to call default protocol >> implementatio

Re: [swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread Rick Mann via swift-users
consider it like something super class does. If you want it that > way, use class inheritance instead. > > Zhaoxin > > Get Outlook for iOS > > _ > From: Rick Mann via swift-users > Sent: 星期三, 十一月 16, 2016 07:51 > Subject: Re: [s

Re: [swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread zh ao via swift-users
wift-users Sent: 星期三, 十一月 16, 2016 07:51 Subject: Re: [swift-users] Attempting to call default protocol implementation crashes Playground To: Dan Loewenherz Cc: swift-users Well, this is a standard protocol default implementation. I was experimenting to see if it was possible to call t

Re: [swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread Rick Mann via swift-users
Well, this is a standard protocol default implementation. I was experimenting to see if it was possible to call the default implementation after providing a concrete implementation. > On Nov 15, 2016, at 14:47 , Dan Loewenherz wrote: > > What are you trying to accomplish here, more concretely?

Re: [swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread Dan Loewenherz via swift-users
What are you trying to accomplish here, more concretely? My first thought is that you shouldn't implement the same function in both a protocol extension and a conforming class. Why not just give them different names and call the function from within the extension instead of from the class? E.g. p

[swift-users] Attempting to call default protocol implementation crashes Playground

2016-11-15 Thread Rick Mann via swift-users
The following gives Xcode 8.1 a very hard time. Eventually I get a Bad Access on the last line. I'm guessing it's a recursive call. Is there any way to call the default implementation from a "real" implementation? protocol FooPro { func fooFunc() } extension FooPro { func