override(T)
bearophile
bearophileHUGS at lycos.com
Thu Sep 24 08:21:16 PDT 2009
Daniel Keep:
> Why not go with what C# uses?
>
> class LotterySimulation : Lottery, Figure {
> override void Lottery.draw();
> override void Figure.draw();
> }
Looks good enough, I can understand it. For the programmers out there it's positive to use a syntax already in use (especially if it's a good enough syntax). D design principles say D doesn't want to be revolutionary. In D originality is not a virtue when there are no net advantages, syntactical or otherwise.
C# has other things worth copying beside explicit interface implementations :-)
Bye,
bearophile
More information about the Digitalmars-d
mailing list