K
Keith Thompson
Sidney Cadot said:Another thing is that I think the standard's way of defining a "side
effect" (by enumeration of cases) is flawed. This is a bit like
defining mammals as "primates, whales, furry animals, ... (and so
on)", which works fine until you find a platypus.
A good example, only slightly damaged by the fact that platypuses do
have fur.
Surely, there has to be a more generic way of defining a side effect.
If the definition is too generic, it could include modifying memory
(which could be observed even if the program isn't running under a
debugger).