What are the prominent downsides of the D programming language?
Adam D. Ruppe
destructionator at gmail.com
Wed Sep 30 12:34:48 UTC 2020
On Wednesday, 30 September 2020 at 02:17:37 UTC, H. S. Teoh wrote:
> How is multiple interface broken?
interface A { void foo(); }
interface B { void foo(); }
class C : A, B { void foo() {} }
If there's two interfaces with the same method signature, D
merges them by the time you get to the implementation class.
You could argue this is irrelevant and not actually broken but
like... idk I see the point.
> Java has multiple interfaces. Are you saying that Java is
> broken?
Yes, Java does it this way too.
C# doesn't though: there you can specify which interface you want
to implement.
More information about the Digitalmars-d
mailing list