Date: Wed, 18 Mar 2020 12:15:25 +0100
On 3/18/20 7:01 AM, Thiago Macieira via Std-Proposals wrote:
> On Tuesday, 17 March 2020 11:12:32 PDT Ryan Nicholl via Std-Proposals wrote:
>> Consider:
>>
>> class A : public B, public C
>> {
>> virtual int lock();
>> };
>>
>> what happens if both B::lock and C::lock exist as virtual functions? we can
>> override them both with one function... but what if they are interfaces
>> that do different things and happen to use the same name?
> Then you have an API design problem and it should be solved at that level.
+1
The motivation you provide is insufficient in my opinion. At least
considering your example this is not a language problem.
Sebastian
> On Tuesday, 17 March 2020 11:12:32 PDT Ryan Nicholl via Std-Proposals wrote:
>> Consider:
>>
>> class A : public B, public C
>> {
>> virtual int lock();
>> };
>>
>> what happens if both B::lock and C::lock exist as virtual functions? we can
>> override them both with one function... but what if they are interfaces
>> that do different things and happen to use the same name?
> Then you have an API design problem and it should be solved at that level.
+1
The motivation you provide is insufficient in my opinion. At least
considering your example this is not a language problem.
Sebastian
Received on 2020-03-18 06:18:16