null [re: spec#]
Nick Sabalausky
a at a.a
Sun Nov 7 21:54:36 PST 2010
"Walter Bright" <newshound2 at digitalmars.com> wrote in message
news:ib783u$1odt$1 at digitalmars.com...
>
> The real problem with the spurious errors is that then people will put in
> an initialization "just to shut the compiler up." Time passes, and the
> next guy is looking at the code and wonders why x is being initialized to
> a value that is apparently never used, or worse, is initialized to some
> bogus value randomly picked by the long-retired programmer. I've seen code
> reviewers losing a lot of time on this issue.
>
> In general, I am opposed to inserting dead code and unused values to get
> the compiler to accept the program.
Yes, you'd rather silently insert a value even when it's the wrong value.
More information about the Digitalmars-d
mailing list