Broken compilers? (was Re: Comma Operator)

Ken Arromdee arrom at aplcen.apl.jhu.edu
Tue Jan 17 08:53:24 AEST 1989


>Of course, if the side-effect of such a "dead" thing was that your PDP-8's
>eleventeenth-bit-light blinked, and that bulb was removed and the electrical
>contacts hooked to your Mr. Coffee controller, and your new artificially-
>intelligent compiler reduced the expression and unwittingly eliminated the
>blink, and you failed the CS 101 exam because of caffeine withdrawal...
>
>That would be injustice, eh?

Yes.  In this case it should have been declared "volatile"...
:-) :-) :-)
--
               EARTH                  --Kenneth Arromdee
           smog  |   bricks          UUCP: ....!jhunix!ins_akaa
        AIR     mud       FIRE   INTERNET: arromdee at crabcake.cs.jhu.edu
      soda water |   tequila       BITNET: g49i0188 at jhuvm
               WATER           (please, no mail to arrom at aplcen)



More information about the Comp.lang.c mailing list