January 15, 2007
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?

January 16, 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.
1 2
Next ›   Last »