Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-21 11:29:23


"David Bergman" <davidb_at_[hidden]> writes:

> It has to do with purity, that Haskell is a pure language in the sense of an
> expression ALWAYS evaluating to the same value, so that the same exact
> expression can be substituted for that computed value wherever, whenever.

Even I can tell that has no bearing on side-effects, though:

  int z;
  int f(int x) { return z = x; }

f(y) is always y for any y
still, it has side-effects.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk