In an early version of the C compiler gcc, when the pragma directive was introduced, it took the "implementation-defined" effect literally and tried to launch computer games.

@RadicalEdward The problem of "implementation-defined" and "undefined" behaviours that are too numerous in C and C++: the compiler can do anything (ignoring the lines, launching a game, removing the files, formating the disks, etc.). Those should not exist in a programming language.

Follow

@drwho

I'm not.

As long as the implemented behaviors are properly documented, undefined behaviours can be useful hooks: don't forget that C is a language designed to be used in a wide variety of use cases: portability is valuable in many of them, but sometimes is not relevant at all.

@Feufochmar @RadicalEdward

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.