abstract function templates
bearophile
bearophileHUGS at lycos.com
Tue Dec 28 10:30:09 PST 2010
Ali Ãehreli:
> > But uncomment the override and it fails.
>
> That's because "Templates cannot be used to add [...] virtual functions
> to classes"
But the error messages given by DMD 2.051 aren't easy to understand for me:
test.d(10): Error: variable test.Bar.draw!(int).draw.this override cannot be applied to variable
test.d(10): Error: variable test.Bar.draw!(int).draw.t override cannot be applied to variable
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list