More magical AA semantics

Daniel Murphy yebblies at nospamgmail.com
Fri Jan 11 01:20:49 PST 2013


"Don" <don at nospam.com> wrote in message 
news:imqicbgjotdtzfgwdeor at forum.dlang.org...
> Consider this code:
> ---
>    int[int] x;
>
>    int k = x[2] + 5; // Error, range violation. Makes sense.
>
>    x[2] = x[2] + 5;  // But this works!!!
> ---
>

Definitely a bug. 




More information about the Digitalmars-d mailing list