More magical AA semantics

deadalnix deadalnix at gmail.com
Fri Jan 11 20:23:59 PST 2013


On Friday, 11 January 2013 at 13:50:33 UTC, monarch_dodra wrote:
> I find that with LTR, you end up with a value (T.init), that 
> you never actually put into your array. IMO, that means 
> something went wrong somewhere. This is particularly relevant 
> with "++a[0]".
>

Not necessarily, as the computation made for an assignation isn't 
the one made in order to get the value.

It make sense that such expression fail. As long as the AA as the 
key are computed before the value and in that order.


More information about the Digitalmars-d mailing list