On Tue, 28 Jul 2009 19:43:04 -0400, Andrei Alexandrescu
<[email protected]> wrote:
Chad J wrote:
Andrei Alexandrescu wrote:
My perception is that there are a few vocal people. The protests have
been historically against the stupid "writeln = 42" which we must get
rid of.
Seems odd to me. I thought the unpopular bit was the lack of
lvalue-ness and how "array.length++;" did not work. No idiot would
write "writefln = 42;" in serious code. It's easy to avoid since you
have be rather intentional about it.
Oh, yes. That needs fixing too!
It seems to be fixed in D2.031:
writefln = 42;
Error: writefln is not an lvalue
Error: cannot implicitly convert expression (42) of type int to void
Same goes with writeln.