Memory allocation purity
via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 14 23:45:35 PDT 2014
On Thursday, 15 May 2014 at 06:24:30 UTC, bearophile wrote:
> If you start using pure in D you see it's like const: it allows
> you to remove certain kinds of your mistakes from the code, and
> it makes it more easy to reason about the code.
As lint like functionality, yes.
> You can use mutability inside a strongly pure function. This is
> a very good.
Local mutability does not affect purity, it is the pre and post
conditions at the call site that matters.
More information about the Digitalmars-d
mailing list