... I do because if you mess up and give it a infinite condition, you risk crashing whatever you are programming! Not matter WHAT language you are using, if you mess up a while loop, expect to have to smack ctrl+alt+del to abort.
So... to make SOME sort of discussion out of this, have you ever got yourself in a mess because you wrote a bad while loop? What language and what program did you freeze up and crash because of your mistake?
For me... I've crashed Jedi Knight once while doing come cogging on weapon selection. (game frozed and I was forced to reset the computer) Another time was in JavaScript when coding a menu roll over. I had a alert message in the while loop so I had to use ctrl+alt+del to abort IE because alert boxes disable the window (BTW... a great way to piss off visiters from your website if you code this in intentionally, hehe!). Another time was in ActionScript in which I was doing weapon selection (again). It crashed Flash and I lost some code in the process (Errr!! ).
-- SavageX
------------------
"...and if you don't like that, then you need to be slugged in the face repeatedly, until my hands are soaked in blood. Have a nice day!"
http://geocities.com/savagex378
[This message has been edited by SavageX378 (edited June 06, 2004).]
So... to make SOME sort of discussion out of this, have you ever got yourself in a mess because you wrote a bad while loop? What language and what program did you freeze up and crash because of your mistake?
For me... I've crashed Jedi Knight once while doing come cogging on weapon selection. (game frozed and I was forced to reset the computer) Another time was in JavaScript when coding a menu roll over. I had a alert message in the while loop so I had to use ctrl+alt+del to abort IE because alert boxes disable the window (BTW... a great way to piss off visiters from your website if you code this in intentionally, hehe!). Another time was in ActionScript in which I was doing weapon selection (again). It crashed Flash and I lost some code in the process (Errr!! ).
-- SavageX
------------------
"...and if you don't like that, then you need to be slugged in the face repeatedly, until my hands are soaked in blood. Have a nice day!"
http://geocities.com/savagex378
[This message has been edited by SavageX378 (edited June 06, 2004).]
The cake is a lie... THE CAKE IS A LIE!!!!!