ID:1116
![]() Jun 18 2005, 3:07 pm
|
|
For those who think bytes are in high demand you can get an infinite loop doing for() which is a 3 bytes cheaper than while(1)!
|
I'd get my eye spat in if I suggested such a notion to any C++ programmers I know. ;)
|
I haven't even tried just for() in C++ so I don't even know if it works. However I do know for(;;) works since in some of my programs occasionally a for loop eventually turns into a wanabe while loop and then an infinite loop to be broken out of.
|
Am I right?
Eh?