Syntax for heap allocated void initialized arrays

bearophile bearophileHUGS at lycos.com
Wed Oct 16 02:45:50 PDT 2013


Timothee Cour:

> is the following true?
>
> int*[N] a=void;
> foreach(i;N)
>   a[i]=fillValue(i);// some leaks may occur during foreach loop
> //at the next GC run, no more leaks due to that piece of code

I think so, but I am not an expert on GC matters, I have not yet 
written a similar GC.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list