DList.Range magically becomes empty.
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 26 07:57:22 PST 2015
On 2/25/15 4:58 AM, Ivan Timokhin wrote:
> Tobias Pankrath wrote:
>
>> writefln("stack: %s", stack[]); //fine
>
> This call consumes all ranges stored in stack, so they're empty afterwards.
>
This has to be a bug. stack[] should produce a range that can be
iterated without destroying the data in the container. If it doesn't, it
should be supported.
-Steve
More information about the Digitalmars-d-learn
mailing list