A few considerations on garbage collection

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 08:57:57 PDT 2014


On 4/30/14, 8:33 AM, Andrei Alexandrescu wrote:
>
> int[] a = new int[1000];
> a = a[250 .. 750];
> int* p = a[500 .. $].ptr;

Here I meant:

int[] a = new int[1000];
int* p = a[500 .. $].ptr;
a = a[250 .. 750];


Andrei



More information about the Digitalmars-d mailing list