ambiguous ?
Rob Carriere
rob at raksha.eng.ohio-state.edu
Fri Oct 27 11:32:54 AEST 1989
In article <14113 at lanl.gov> jlg at lanl.gov (Jim Giles) writes:
[on evaluation order of function arguments]
>[...] The above Fortran rule is too restrictive. The
>C rule is too permissive. The middle ground would give the user
>more control _and_ better insure the correctness of the code.
Could you _please_ explain why you think this is important at all? Throwing
interacting side effects into a function call is one very good way to confuse
the sh*t out everybody, including the poor person who has to maintain the
code. If you need side effects in your arguments and they interact, assign to
variables first, that way it is clear what you're doing. If your compiler
doesn't like sequences like that, send your vendor oxidizing mail. As for
readability, I think any problems in that department are more due to fact that
you are trying to do something messy and very complex than to any language
deficiencies. Besides, just how often does it happen?
SR
More information about the Comp.lang.c
mailing list