override(T)

Sean Kelly sean at invisibleduck.org
Thu Sep 24 09:44:51 PDT 2009


== Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s article
>
> So I was thinking of this:
> class LotterySimulation : Lottery, Figure {
>      override(Lottery) void draw();
>      override(Figure) void draw();
> }
> This is easy to implement, scales well, and has good real world uses.

auto x = new LotterySimulation;
x.draw(); // what happens?



More information about the Digitalmars-d mailing list