List of Phobos functions that allocate memory?

Sean Kelly sean at invisibleduck.org
Fri Feb 7 07:44:07 PST 2014


On Friday, 7 February 2014 at 15:41:59 UTC, Adam D. Ruppe wrote:
> On Friday, 7 February 2014 at 08:32:04 UTC, Walter Bright wrote:
>> That doesn't work, as nothing prevents code from squirreling 
>> away the caught exception object handle.
>
> scope would. I'm just saying.
>
> We could also just document it as undefined behavior and leave 
> matters in the user's hands, but this wouldn't jive nicely with 
> @safe :(

Thread stores an uncaught exception reference so it can be 
rethrown on join().  But I suppose a case could be made that an 
uncaught exception could either be discarded or abort the app.


More information about the Digitalmars-d mailing list