Funny mistake
Greg Hennessy
gsh7w at astsun.astro.Virginia.EDU
Sun Mar 17 05:51:53 AEST 1991
#>>"if (a = b)" instead of "if (a == b)".
#>... I have yet to see a UNIX compiler complain about it
Doug Gwyn:
#That's good, because it is valid C and the compiler cannot know whether
#or not it reflects the programmer's intentions.
Then perhaps that is why having an optional flag to inform the user of
this sometimes suspicious code fragment may be a good idea.
--
-Greg Hennessy, University of Virginia
USPS Mail: Astronomy Department, Charlottesville, VA 22903-2475 USA
Internet: gsh7w at virginia.edu
UUCP: ...!uunet!virginia!gsh7w
More information about the Comp.lang.c
mailing list