There's always this one, which I ran into at some point and thought was
just lovely. No, I didn't do this, and no, I can't take credit for making
it up either...I can't even remember where I first saw it, and yes, I
could use Google to find it (<wave>Hi, Tom! :)</wave>).
typedef enum {
CODE_BLUE,
CODE_RED
} Code;
extern Code condition;
void check_condition() {
if (condition = CODE_RED) {
launch_missiles();
}
}
-Adam
_______________________________________________
Tech mailing list
[email protected]
http://lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/