Le 19/06/2012 12:49, Iain Buclaw a écrit :
So we have a few combinations then:
pure - as in weakly pure, guarantees not to change global state, but
may alter it's own hidden state.
pure nothrow - as in strongly pure, where is guaranteed not to have
any side effects, so is suitable for constant folding / the usual
optimisations for a function typically marked as __pure__ in C.
pure const - similar to strongly pure, as is guaranteed not to be able
to alter its own state (as it's const), but still may have side
effects / throw an exception.
Make much sense? :-)
You know that it doesn't make any sense, right ?