33
gdb123
7y

while true...

Comments
  • 17
    Seen in real source text:

    while (PIGS_DO_NOT_FLY)

    where PIGS_DO_NOT_FLY was defined as 1 in some header file.
  • 5
    Then someone tries to one-up the last one with (NULL == NULL), and wonders why it skips the loop...
  • 2
    while ( !!1 )

    Was missing in the list of stupidity. 😉
  • 5
    I like `for(;;);`.
  • 0
    error "True" undefined
  • 3
    #define ever (;;);

    for ever
  • 4
    const char* SUCKS = "SUCKS";

    #define Dave SUCKS
    #define sucks == SUCKS

    while (Dave sucks) {
    ...
    }
  • 1
    @Kaji in C, it wouldn't skip the loop.
Add Comment