top 8 entry from grpof of my app :-(

Lionello Lunesu lio at lunesu.remove.com
Tue Jan 16 01:11:49 PST 2007


%u wrote:
> Thank you for the suggestions.
> 
>> You might also try nedmalloc.
> 
> I checked it, it's a C library.  How does it work with D? e.g. how to allocate D
> class (not struct) array? Any experience with it?
> 

http://www.digitalmars.com/d/memory.html#newdelete

Basically, you just declare the function from the C lib, for example:

extern(C) void* nedmalloc(size_t);//just a guess

And you can use it. Must still link to the lib though :)

L.


More information about the D.gnu mailing list