June 2025

S M T W T F S
1234567
891011121314
15161718 192021
22232425262728
2930     

Style Credit

Expand Cut Tags

No cut tags
Sunday, November 7th, 2004 06:32 pm
I have a nasty suspicion that, aiming to create neat code, I've just written an infinite loop. Ho-hum. Back to the algorithmic drawing board ...
Sunday, November 7th, 2004 10:39 am (UTC)
I wouldn't wait to find out.
Sunday, November 7th, 2004 10:46 am (UTC)
Nope - just ran through it again in my head. The classic combination of a while loop, without actually doing anything to the test expression. [nonchalant whistle] Nothing to see here. Please move along.
Sunday, November 7th, 2004 12:42 pm (UTC)
re your comment in redcountess's LJ in answer to my comment (which I now can't access it seems) - yes elephants are definitely the common reference when it comes to sprogs - er sorry - children.
Sunday, November 7th, 2004 12:49 pm (UTC)
[grin] Especially true where the gap between the floorboards is more of an amplification space ... didn't help that my bedroom cupboards are below the hall (down which they used to launch themselves in a long jump from the bottom of the stairs).
Sunday, November 7th, 2004 12:54 pm (UTC)
bloody hell I'm surprised you can still hear!!
Sunday, November 7th, 2004 12:57 pm (UTC)
Well, I do have mild tinnitus, but that's mostly due to concerts ...
Monday, November 8th, 2004 04:53 am (UTC)
Yes, I sporadically have the same, for the same reason!!
Sunday, November 7th, 2004 12:50 pm (UTC)
Not a problem as long as you have a break condition somewhere in it! Lots of my code begins

while(1) {
Sunday, November 7th, 2004 12:56 pm (UTC)
[grin] Well, it did actually need a test in the while() so as to not run the loop if not necessary - it's just that I forgot to write in the line to recalculate the relevant test value.
Sunday, November 7th, 2004 03:38 pm (UTC)
Ewww! Who taugh you C ?!

for(;;)

is the classy way to do it :-)
Sunday, November 7th, 2004 05:15 pm (UTC)
You just want to that so you can type smileys which look like Predators in your code ... [grin]

(;;)
Monday, November 8th, 2004 02:13 am (UTC)
*laugh*

I have a morbid fear of leaving blanks in for statements.
Monday, November 8th, 2004 12:32 am (UTC)
Remember to place a known elephant in cairo! :)