C question

Alan Fargusson alan at drivax.UUCP
Sat Apr 13 04:12:09 AEST 1985


> Regarding the question about x = x++ and a[i] = i++ and similarly
> ambiguous constructs:  Why the (*@#$%^*^ can't the compiler complain

I didn't think that a[i] = i++ was ambiguous when I used it to set an
array up shuch that each element a[i] was equal to i. So call me a hacker.
The problem is that a compiler writer cannot anticipate all the errors
a user might make. There are an infinite number of correct programs, and
even more incorrect programs.
-- 

Alan Fargusson.

{ ihnp4, sftig, amdahl, ucscc, ucbvax!unisoft }!drivax!alan



More information about the Comp.lang.c mailing list