Allocation failures

Jardík via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 17 06:01:17 PST 2016


On Wednesday, 17 February 2016 at 06:52:21 UTC, thedeemon wrote:
> So keep GC heap for small litter (including exceptions) and use 
> other allocators for large pieces of data. This way you may get 
> best of what D offers without long-GC-pause or 
> out-of-memory-termination pains.

I will probably do that. Since others said I can actually catch 
that out of memory error and that the destructors will run (and 
thus free some of the resources) I see no problem in writing it 
in D. I am happy it doesn't force abort()s as some other 
languages (rust) or libraries (glib). Thank you everyone for 
answering my questions and consider this solved (where can I mark 
it as such?).


More information about the Digitalmars-d mailing list