Path: utzoo!utgpu!cunews!cognos!geovision!pt From: pt@geovision.gvc.com (Paul Tomblin) Newsgroups: comp.lang.c Subject: Re: Constants in conditionals Message-ID: <1426@geovision.gvc.com> Date: 21 Feb 91 15:26:24 GMT References: <9890@dog.ee.lbl.gov> <1991Feb18.113919.28217@watmath.waterloo.edu> <10032@dog.ee.lbl.gov> <1991Feb20.034136.14554@athena.mit.edu> Reply-To: pt@geovision.gvc.com Organization: GeoVision Corp., Ottawa, Ontario Lines: 30 scs@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@geovision.gvc.com or {cognos,uunet}!geovision!pt ! Me neither.