Memory allocation purity
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 14 17:50:08 PDT 2014
On 5/14/2014 5:03 PM, Meta wrote:
> Allocating memory through new and malloc should always be pure, I think, because
> failure either returns null in malloc's case,
malloc cannot be pure if, with the same arguments, it returns null sometimes and
not other times.
> or throws an error in new's case.
A non-recoverable error.
^^^^^^^^^^^^^^^
More information about the Digitalmars-d
mailing list