S
spibou
Consider the expression x = f(...) ;
1. The function f may or may not take arguments.
x is a global variable which is visible to f and any
functions which may be called by f or functions
which appear as arguments to f in the above
expression.
2. The list of arguments to f does not contain any
operators which modify the value of x and also
functions called by f or appearing as arguments to
f do not modify the value of x.
3. f itself may modify the value of x.
Is the above expression well defined ? If you think
it is could you explain how it follows from the standard ?
Personally I feel it is well defined. If there are any disagreements
I will explain my reasoning later.
Spiros Bousbouras
1. The function f may or may not take arguments.
x is a global variable which is visible to f and any
functions which may be called by f or functions
which appear as arguments to f in the above
expression.
2. The list of arguments to f does not contain any
operators which modify the value of x and also
functions called by f or appearing as arguments to
f do not modify the value of x.
3. f itself may modify the value of x.
Is the above expression well defined ? If you think
it is could you explain how it follows from the standard ?
Personally I feel it is well defined. If there are any disagreements
I will explain my reasoning later.
Spiros Bousbouras