Pure

bearophile bearophileHUGS at lycos.com
Wed Jan 8 11:03:47 PST 2014


Ola Fosheim Grøstad:

> Is pure meant to be a compiler hint so that it is up to the 
> programmer to enforce it?

Nope, it's enforced by the compiler. (But its rules are not 
immediately obvious, there are three kinds of purity, strong, 
weak and constant purity, etc). There are several corners cases, 
etc.

Bye,
bearophole


More information about the Digitalmars-d-learn mailing list