How do you overload new and delete for a class?

Adrian Mercieca amercieca at
Mon Jan 9 21:37:42 PST 2012

Hi Alex,

Thanks for the answer.

As for the allocation, you mention malloc: is that malloc from the C 
runtime library? You also imply alternatives to this allocator; what would 
these be?

As for deletion, does on then invoke delete on the malloc'ed data pointer?

Pointing me to some example would be greatly appreciated.

- Adrian.

More information about the Digitalmars-d-learn mailing list