On 10/17/2016 10:43 AM, Nordlöw wrote:


I have an array container.

Everything works as expected in all unittests except for the line at


that fails as

    core.exception.RangeError@array_ex.d(1649): Range violation

and I have no clue why.

Is this a know problem with AA's with container-like structs as value

So, x is a user-defined type and the line that fails is

 x["a"] ~= 42;

Unfortunately, as far as I know, that's a privilege reserved for built-in AAs.

It still feels like x["a"] could return a proxy that could later add a new element and then apply ~= on it. (I haven't read the rest of your code to see whether you've already done that.)


Reply via email to