[Issue 8135] throwing Error runs finally handler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 24 19:34:06 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8135



--- Comment #12 from Alex Rønne Petersen <alex at lycus.org> 2012-05-25 04:35:42 CEST ---
(In reply to comment #11)
> >That could work too. I really just want the GC to not assume that an allocation error is fatal.
> 
> You could simply override the behavior by providing your own
> 'extern(C) void onOutOfMemory()'. The linker will pick the one
> from druntime with the lowest precedence.

I don't always want out of memory to be handled. In most cases, I do treat it
as fatal, but in the few cases I don't, I just want to get a null value back
from allocations in the core.memory module.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list