About GC: The Future of Rust : GC integration

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 7 20:19:18 PDT 2016


On Wednesday, 8 June 2016 at 03:10:32 UTC, Eugene Wissner wrote:
> In D some very important things like exceptions depend on GC.

This is a common misconception. Exceptions do not have to use the 
GC, they just often are. All you have to do is malloc an 
exception and then throw it, and then remember to free it after 
you catch it up the call stack.

The Phobos developers made the decision to use the GC in order to 
be @safe rather than fast.


More information about the Digitalmars-d mailing list