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
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
>>>
>>> __
, 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
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
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
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?
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
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