Range violation with AAs

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 17 11:44:29 PDT 2016


On 10/17/2016 11:40 AM, Nordlöw wrote:
> On Monday, 17 October 2016 at 18:22:53 UTC, Ali Çehreli wrote:
>> 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.)
>
> `Array` is in essence a C++-style array container (pointer, length,
> capacity) with C-style memory management. Nothing else.
>
> Have I done something wrong with ~= overloads perhaps?

opOpAssign? (I need to stop guessing without coding. :) )

Ali



More information about the Digitalmars-d-learn mailing list