new DIP5: Properties 2
Robert Jacques
sandford at jhu.edu
Tue Jul 28 22:20:36 PDT 2009
On Tue, 28 Jul 2009 19:43:04 -0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> 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.
More information about the Digitalmars-d
mailing list