Scope Containers

Olivier FAURE couteaubleu at gmail.com
Sat Mar 16 12:17:20 UTC 2019


On Wednesday, 13 March 2019 at 13:29:51 UTC, Atila Neves wrote:
> I made `opSlice` `@system` given what has been discussed here.
>
> I introduced a new member function `range` which return a 
> forward range that keeps a pointer to the vector inside of it. 
> Coupled with dip1000 it seems to do the trick.

Have you tested it with opIndex? You'd probably get the same 
problem, since it returns a reference to data that might be 
reallocated later.


More information about the Digitalmars-d mailing list