Scope Containers

Atila Neves atila.neves at gmail.com
Mon Mar 18 17:19:36 UTC 2019


On Saturday, 16 March 2019 at 12:17:20 UTC, Olivier FAURE wrote:
> 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.

Ugh, you're right. Not sure what to do about that one, but thanks 
for bringing it up!


More information about the Digitalmars-d mailing list