On Monday, October 01, 2012 07:58:39 Tommi wrote:
> On Monday, 1 October 2012 at 05:43:39 UTC, Alex Rønne Petersen
> 
> wrote:
> > As far as purity goes, pow2 *is* pure. ...
> 
> According to http://en.wikipedia.org/wiki/Pure_function it's not:
> 
> "The [pure] function always evaluates the same result value given
> the same argument value(s)"

Forget what Wikipedia says about pure. If you focus on that, you're going to 
be complaining about D's pure left and right, because what it's talking about 
and what D does are related but very different. D takes a very practical 
approach to functional purity. You should read this:

http://stackoverflow.com/questions/8572399

- Jonathan M Davis

Reply via email to