List of Phobos functions that allocate memory?

Adam D. Ruppe destructionator at gmail.com
Fri Feb 7 07:48:55 PST 2014


On Friday, 7 February 2014 at 15:44:08 UTC, Sean Kelly wrote:
> But I suppose a case could be made that an uncaught exception 
> could either be discarded or abort the app.

It could also make a copy at that time on to the regular GC heap 
and store that (the members of the throwable class are still GC'd 
so all the store function has to do is a shallow copy, using the 
RTTI to get the correct size to copy, onto the gc heap). It'd 
surely be fewer exceptions to get through that than the thrown, 
caught, and subsequentely discarded typical case.


More information about the Digitalmars-d mailing list