array.length++ not an lvalue

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Jun 18 08:05:48 PDT 2008


"Koroskin Denis" <2korden at gmail.com> wrote in message 
news:op.ucx7xdubenyajd at proton.creatstudio.intranet...

> D *could* do the following trick:
> array.length()+=1 -> array.length(array.length() + 1);
>
> but it would break too much of the existing code and makes a little of 
> sense.

It makes perfectly good sense.  Good enough that most languages that have 
built-in properties translate augmenatation assignments into exactly what 
you've written. 





More information about the Digitalmars-d mailing list