Re: Major Bug in Interpreter [Attn: Robert Craig]
A look at the MISRA rules for using the C language is
enough to put anyone off relying on side-effects. Not to
mention many of the most useful standard libraries.
Georg mentioned a Kernighan and Pike (amongst others) a
few posts back. Here, from K&P's 'The Practice of
Programming':
str[i++] = str[i++] = ' ';
is likely to give the wrong answer.
Also:
array[i++] = i;
can give varying results.
So the order of evaluation in perhaps the most pervasive
language is not to be relied on.
Fortunately Eu doesn't isn't C; no assigments-as-expressions
here. Why use C habits dating from the time when compilers
needed help to produce efficient code, in Eu?
Personally, as only a recent and light user, I wouldn't
miss $ if it was removed.
John
|
Not Categorized, Please Help
|
|