Not logged in
Log in now
Create an account
Subscribe to LWN
Recent Features
LWN.net Weekly Edition for February 16, 2012
Book review: Open Advice
Linux support for ARM big.LITTLE
LWN.net Weekly Edition for February 9, 2012
XBMC 11 "Eden"
"As you can guess, constant functions are also pure functions, but pure functions cannot be constant functions." Shouldn't it be : "As you can guess, constant functions are also pure functions, but pure functions can be not constant functions." ?
Implications of pure and constant functions
Posted Jun 11, 2008 3:00 UTC (Wed) by rriggs (subscriber, #11598) [Link]
Try this for clarity: "but not all pure functions are constant functions."
Posted Jun 11, 2008 6:42 UTC (Wed) by nix (subscriber, #2304) [Link]
Or "functions declared 'const' are implicitly 'pure', but not vice versa."
Copyright © 2012, Eklektix, Inc. Comments and public postings are copyrighted by their creators. Linux is a registered trademark of Linus Torvalds