Memory allocation purity

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed May 14 17:00:39 PDT 2014


On 5/14/2014 3:42 PM, Brian Schott wrote:
> If malloc can never be considered pure, even when hidden behind an allocator,

It cannot be pure as long as it can fail.

> why can it be considered pure when hidden behind the GC?

Because GC failures are not recoverable, so the pure allocation cannot fail.


More information about the Digitalmars-d mailing list