while true: !!!

Rainer Deyke root at rainerdeyke.com
Sat Dec 16 18:28:03 CET 2000


"Greg Jorgensen" <gregj at pobox.com> wrote in message
news:0FE_5.153194$U46.4997180 at news1.sttls1.wa.home.com...
> I worked on a huge C/C++ mutant project a few years ago. One of the
> programmers thought this was clever:
>
>   // buried in some nested #include file
>   #define FOREVER true
>   ...
>   while (FOREVER) { ... }
>
> Not to be outdone, another programmer introduced this abomination:
>
>   #define FOR_EVER for ( ; ; )
>   ..
>   FOR_EVER { ... }

#define ever (;;)
for ever { ... }

:-)


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list