Memory allocation purity

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Wed May 14 17:44:26 PDT 2014


On Thursday, 15 May 2014 at 00:00:37 UTC, Walter Bright wrote:
> 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.

Can we say that Mallocator failures are not recoverable?


More information about the Digitalmars-d mailing list