How to delete dynamic array ?

Ali Çehreli acehreli at yahoo.com
Wed Mar 17 16:32:28 UTC 2021


On 3/17/21 3:54 AM, jmh530 wrote:
> On Tuesday, 16 March 2021 at 23:49:00 UTC, H. S. Teoh wrote:

>>     double[] data;
>>     data = cast(double[]) malloc(n * double.sizeof)[0 .. n];

> This is one of those things that is not explained well enough.

I have something here:

 
http://ddili.org/ders/d.en/pointers.html#ix_pointers.slice%20from%20pointer

Ali



More information about the Digitalmars-d-learn mailing list