D: An Up and Coming Embedded Software Language

Justin Spahr-Summers Justin.SpahrSummers at gmail.com
Thu Jul 1 20:00:31 PDT 2010


On Thu, 01 Jul 2010 17:54:54 -0400, bearophile 
<bearophileHUGS at lycos.com> wrote:
> 
> Michel Fortin:
> > I sure hope it will. In the meanwhile, more and more code is being 
> > written in (or ported to) D2 which is potentially missing 'override' 
> > everywhere. Wouldn't it be better to do this sooner rather than later?
> 
> Both Walter and Andrei want it, so it's a matter of time. It doesn't even need to be implemented, because this test is already present in the compiler: I generally suggest D programmers to compile their code with the -w (warnings), it helps catch some bugs and it forces you to use override.
> And even if some D2 code lacks override, you need a very short place add a hundred missing "override" in a large program.
> 
> Bye,
> bearophile

Object not being const correct is probably a blocker for mandatory use 
of "override": http://d.puremagic.com/issues/show_bug.cgi?id=1824

I compile with -w, and trying to write correct overrides for toString(), 
toHash(), etc. is a pain.


More information about the Digitalmars-d mailing list