?

Log in

No account? Create an account
Bug of the day: While Not RS.EOF foo = foo + 1 Wend As with all… - 'Twas brillig, and the slithy toves did gyre and gimble in the wabe [entries|archive|friends|userinfo]
Thomas

[ website | Beware the Jabberwock... ]
[ deviantArt | the-boggyb ]
[ FanFiction | Torkell ]
[ Tumblr | torkellr ]

Links
[Random links| BBC news | Vulture Central | Slashdot | Dangerous Prototypes | LWN | Raspberry Pi]
[Fellow blogs| a Half Empty Glass | the Broken Cube | The Music Jungle | Please remove your feet | A letter from home]
[Other haunts| Un4seen Developments | Jazz 2 Online | EmuTalk.net | Feng's shui]

[Wednesday 19th November 2008 at 9:51 pm]
Thomas

boggyb
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.
Link | Previous Entry | Share | Next Entry[ 8 pennies | Penny for your thoughts? ]

Comments:
[User Picture]From: pteppic
Wednesday 19th November 2008 at 10:23 pm (UTC)
Nice!
(Reply) (Thread)
[User Picture]From: olego
Thursday 20th November 2008 at 2:44 am (UTC)
Ha! Kinda reminds me of that poem, about that programmer, who had something like

while (eflags.overflow)
    foo++;

that baffled everyone.
(Reply) (Thread)
[User Picture]From: olego
Thursday 20th November 2008 at 2:45 am (UTC)
Err, I forgot a "not" there, but just as well. :-)
(Reply) (Parent) (Thread)
[User Picture]From: boggyb
Thursday 20th November 2008 at 10:08 pm (UTC)
There's something similar to that in today's WTF.
(Reply) (Parent) (Thread)
[User Picture]From: olego
Thursday 20th November 2008 at 10:32 pm (UTC)
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. :)
(Reply) (Parent) (Thread)
[User Picture]From: boggyb
Thursday 20th November 2008 at 10:37 pm (UTC)
(Reply) (Parent) (Thread)
[User Picture]From: tau_iota_mu_c
Thursday 20th November 2008 at 10:06 am (UTC)
Depends if foo's plus operator is overloaded to do something funky to RS or not :)
(Reply) (Thread)
[User Picture]From: boggyb
Thursday 20th November 2008 at 10:08 pm (UTC)
This is plain old VBScript, so + really means +
(Reply) (Parent) (Thread)