std.collection - changing the collection while iterating

via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 22 06:28:15 PDT 2015


On Monday, 22 June 2015 at 06:29:20 UTC, Andrei Alexandrescu 
wrote:
> The matter is very well understood. My point here is that 
> leaving it to the user to make sure which ranges are still 
> valid vs. not is not appropriate for D's container. -- Andrei

Have you considered checking it at compile time? This is 
obviously the RCArray problem in disguise, and the same possible 
solutions apply here, too.


More information about the Digitalmars-d mailing list