Range violation with AAs

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 17 13:36:40 PDT 2016


On Monday, 17 October 2016 at 19:10:54 UTC, Basile B. wrote:
> Just a question, maybe off topic, does this work:
>
> unittest
> {
>     alias Key = string;
>     alias A = Array!int;
>     A[Key] x;
>     x["a"] = [0];
> }
>
> ?

No, that works.

Thanks for your interest.


More information about the Digitalmars-d-learn mailing list