C++, D: Dinosaurs?

Robert Fraser fraserofthenight at gmail.com
Mon Nov 3 16:42:03 PST 2008


Tony wrote:
> (one HAS to use GC with D, right?)

No. Well, the compiler generates calls to allocate & free memory, but 
you can replace those calls with whatever you want. See Tango's 
(druntime's) "stub" GC, which just reroutes compiler-generated calls to 
GC methods to malloc() and free(). You can implement your own "GC" or 
whatever management scheme you want (in fact, if you're writing, say, a 
device driver in D, you would want to use a custom allocator like this 
and not the built-in GC).



More information about the Digitalmars-d mailing list