About GC: The Future of Rust : GC integration
Eugene Wissner via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 7 20:39:50 PDT 2016
On Wednesday, 8 June 2016 at 03:19:18 UTC, Jack Stouffer wrote:
> 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.
Thanks for the clarification. Just tested it with the Mallocator.
It works fine!
More information about the Digitalmars-d
mailing list