delete and references?

Daniel Keep daniel.keep.lists at gmail.com
Sat Aug 8 07:30:20 PDT 2009


Andrei Alexandrescu wrote:
> ...
> 
>> And what if you used it to try to delete a temporary array?  Yes, you
>> could use malloc/free for the temp array, but.. it just seems silly to
>> have to dip into C functions to do that.
> 
> Why? It's not a frequent need.

I use it quite a bit, mostly because scope doesn't work for arrays.

Also, how would you use malloc on class instances?

Also also, I think D's current memory leakage problems should be fixed
BEFORE you start taking away our ability to compensate for the GC.



More information about the Digitalmars-d mailing list