Constants in conditionals

Paul Tomblin pt at geovision.gvc.com
Fri Feb 22 02:26:24 AEST 1991


scs at adam.mit.edu (Steve Summit) writes:
>(I still get bit by this from time to time, whether from sticky
>keyboards or sticky fingers I'm not sure.)  However,
>constructions like

>   while(TRUE)

>are so common that it seems better not to warn about them.

Simple solution:

Replace:

    while (TRUE)
    {
        ...
    }

with:

considered_harmful:
    ...
    goto considered_harmful;

:-) :-)
-- 
Paul Tomblin, Department of Redundancy Department.       ! My employer does 
The Romanian Orphans Support Group needs your help,      ! not stand by my
Ask me for details.                                      ! opinions.... 
pt at geovision.gvc.com or {cognos,uunet}!geovision!pt      ! Me neither.



More information about the Comp.lang.c mailing list