bug in assigning to dynamic array element
anonymous via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 1 04:55:53 PDT 2014
On Saturday, 1 November 2014 at 11:50:34 UTC, ketmar via
Digitalmars-d wrote:
> this *IS* a bug. either compiler should error on this, or it
> shouldn't
> modify random memory. imagine the situation when old array
> contents not
> only collected by GC, but that memory was allocated to something
> completely different.
The old array is still alive and kicking. The left-hand side
still references it. It wasn't collected. You're not writing to
random memory.
More information about the Digitalmars-d
mailing list