RFC: reference counted Throwable

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 21 06:22:18 PDT 2014


On Sunday, 21 September 2014 at 09:07:58 UTC, Johannes Pfau wrote:
> 7) The GC needs to be implemented in D, in the druntime.

Eh, it is easy to write a stub function that just calls malloc. 
The main problem with that is what Andrei said: most code won't 
call free since it doesn't have to, so it would leak in those 
situations. But if you're writing code for this situation, it is 
easy enough to call free; you don't *have* to, but you *can* 
(unless it is @safe code, then you can't).


More information about the Digitalmars-d mailing list