Re:What is C in practice?
by dllthomas on Tuesday June 30, 2015 @11:47AM
(#9806114)
"Note the further optimization that looms: if f() can be proven pure (no side effects), then it can be removed. This makes little sense for a function with no arguments (in which case it would just be a constant)."
It could apply if f computes a value based on global state but doesn't change anything, which is slightly weaker than "pure".
It could apply if f computes a value based on global state but doesn't change anything, which is slightly weaker than "pure".