== vs. = a final word

Ken Yap ken at cs.rochester.edu
Sat Apr 2 00:42:12 AEST 1988


Yeah, I saw a .h file that did:

#define		K	*1000

Of course the next time somebody used K as a variable...
A couple of us wasted 10 minutes figuring this out. Really stupid.

Other inanities included

#define		IS_EQUAL	==
#define		function

Of course, one day I compiled a graphics routine with:

	int	(*function)();

	Ken

PS: I like C. And Pascal, sometimes. And other languages. It's people
who have to make C look like the last language they learnt and never
get used to the new lingo that make life difficult.



More information about the Comp.lang.c mailing list