override(T)
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Sep 24 10:00:08 PDT 2009
Sean Kelly wrote:
> == 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?
Nolo compilendere.
Andrei
More information about the Digitalmars-d
mailing list