Memory allocation purity

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu May 15 09:07:28 PDT 2014


On 05/15/2014 11:45 AM, Don wrote:
>
> "No global state" is a deep, transitive property of a function.
> "Memoizable" is a superficial supersetextra

Why? A memoizable function is still memoizable if it is changed 
internally to memoize values in global memory, for example.

> property which the compiler
> can trivially determine from @noglobal.


More information about the Digitalmars-d mailing list