Memory allocation purity

Kapps via Digitalmars-d digitalmars-d at puremagic.com
Wed May 14 18:25:52 PDT 2014


On Thursday, 15 May 2014 at 00:00:37 UTC, Walter Bright wrote:
>
> Because GC failures are not recoverable, so the pure allocation 
> cannot fail.

Is this intentionally the case? I always thought you could handle 
it with onOutOfMemoryError if you knew that your program could 
handle running out of memory and free some memory (i.e., cached 
data) to recover. I've never actually had a use for it myself, so 
I'm just basing this off of newsgroup discussions I remember 
(possibly incorrectly) reading.


More information about the Digitalmars-d mailing list