why allocators are not discussed here

Marco Leise Marco.Leise at gmx.de
Wed Jun 26 13:06:31 PDT 2013


Am Wed, 26 Jun 2013 16:30:50 +0200
schrieb Robert Schadek <realburner at gmx.de>:

> 
> >> Imagine we have two delegates:
> >>
> >> void* delegate(size_t);  // this one allocs
> >> void delegate(void*);    // this one frees
> >>
> >> you pass both to a function that constructs you object. The first is
> >> used for allocation the
> >> memory, the second gets attached to the TypeInfo and is used by the gc
> >> to free
> >> the object.
> >

Does it mean 16 extra bytes for every allocation ?

-- 
Marco



More information about the Digitalmars-d mailing list