DMD 0.148 release
Derek Parnell
derek at psych.ward
Tue Feb 28 13:51:50 PST 2006
On Wed, 01 Mar 2006 04:23:00 +1100, Sean Kelly <sean at f4.ca> wrote:
> Walter Bright wrote:
>> What I especially think is bad style, however, are things like:
>> const int forever = 1;
>> ...
>> while (forever) ...
>> I don't see them too often, but it does happen.
>
> It perhaps sidesteps the issue, but I use "for(;;)" in these cases,
> mostly because it avoids a constant conditional warning in VC++ :-p
> "while(true)" is probably a bit more meaningful however as it's not a
> counting loop.
And I remember somebody writing ..
#define forever for(;;)
. . .
forever{
. . .
}
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d-announce
mailing list