--- Comment #12 from Alex R�nne Petersen <a...@lycus.org> 2012-05-25 04:35:42
(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: -------