Range violation with AAs

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 17 11:50:50 PDT 2016


On 10/17/16 1:43 PM, Nordlöw wrote:
> At
>
> https://github.com/nordlow/phobos-next/blob/master/src/array_ex.d
>
> I have an array container.
>
> Everything works as expected in all unittests except for the line at
>
> https://github.com/nordlow/phobos-next/blob/master/src/array_ex.d#L1649
>
> that fails as
>
>     core.exception.RangeError at array_ex.d(1649): Range violation
>
> and I have no clue why.

This seems like a bug. If RangeError is happening there, this means it's 
the AA that's complaining, not the Array!int.

If this works properly with normal arrays, it means something is wrong 
in the way the AA behaves. Just another issue with our AA magic, I guess.

-Steve


More information about the Digitalmars-d-learn mailing list