for(;;) vs. while(1) is a draw

diamond@tkovoa diamond at tkou02.enet.dec.com
Fri May 25 13:58:54 AEST 1990


How do we know if they're a draw?  All you people who are arguing
which is better:  one of you code an infinite loop with for(;;)
and one of you code an infinite loop with while(1).  When they
finish, wake me (from the dead) and tell me.

The rest of us can go RTFS.  TFS says that both forms are legal.
This is the only answer that belongs in ThisFNewsgroup.

Some of us will even use optimizers when we can get our hands on them.
Though this does not belong in ThisFNewsgroup.

-- 
Norman Diamond, Nihon DEC     diamond at tkou02.enet.dec.com
Proposed group comp.networks.load-reduction:  send your "yes" vote to /dev/null.



More information about the Comp.std.c mailing list