Range violation with AAs

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


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?


More information about the Digitalmars-d-learn mailing list