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



--- Comment #12 from Alex R´┐Żnne Petersen <a...@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: -------

Reply via email to