Is something wrong with the compiler ?
David Wald
wald at theory.lcs.mit.edu
Sun Oct 7 05:41:20 AEST 1990
In article <26875 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:
>In short, when the ANSI standard says that the result of an operation
>is undefined, it means UNDEFINED. The computer can do anything (like
>turn into a flower)---the system does not have to do anything remotely
>reasonable.
I'm continually amused by the examples people give for undefined and
implementation-defined behavior. Can we get a list together, possibly
to be incorporated into an Emacs macro?
Examples:
Melt your screen;
Call your mother;
Send nasty notes to your boss;
...?
-David
``The `#pragma' command is specified in the ANSI standard to have an
arbitrary implementation-defined effect. In the GNU C preprocessor,
`#pragma' first attempts to run the game `rogue'; if that fails, it
tries to run the game `hack'; if that fails, it tries to run GNU Emacs
displaying the Tower of Hanoi; if that fails, it reports a fatal
error. In any case, preprocessing does not continue.''
-- from the manual for the GCC preprocessor (GCC version 1.34)
--
============================================================================
David Wald wald at theory.lcs.mit.edu
============================================================================
More information about the Comp.lang.c
mailing list