torkell: (Default)
Thomas ([personal profile] torkell) wrote2008-11-19 09:51 pm

(no subject)

Bug of the day:

While Not RS.EOF
foo = foo + 1
Wend

As with all blindingly obvious bugs, it managed to survive a code walkthrough.

[identity profile] pteppic.livejournal.com 2008-11-19 10:23 pm (UTC)(link)
Nice!

[identity profile] olego.livejournal.com 2008-11-20 02:44 am (UTC)(link)
Ha! Kinda reminds me of that poem, about that programmer, who had something like

while (eflags.overflow)
    foo++;

that baffled everyone.

[identity profile] olego.livejournal.com 2008-11-20 02:45 am (UTC)(link)
Err, I forgot a "not" there, but just as well. :-)

[identity profile] olego.livejournal.com 2008-11-20 10:32 pm (UTC)(link)
Wow, that's intense.

I've also encountered mild examples of this, but not something that looped from 1 cent to 999,99 cents. Man, I need to read this site more. :)

[identity profile] tau-iota-mu-c.livejournal.com 2008-11-20 10:06 am (UTC)(link)
Depends if foo's plus operator is overloaded to do something funky to RS or not :)