[FRIAM] div. zero bugs?

Giles Bowkett gilesb at gmail.com
Wed Oct 25 22:09:16 EDT 2006


> Giles suggestion, to reverse the order of the terms, is a good one,
> because it prevents a typo from compiling without error and
> accidentally causing an assignment at run-time, and instead generates
> a compile-time error, pointing out the typo!

yeah that's exactly it. these bugs happen a lot. often enough for these jokes:

> // World's last bug
> if (red_button_pressed = 1)
>    launch_missile();

I thought that was pretty funny ^_^

-- 
Giles Bowkett
http://www.gilesgoatboy.org



More information about the Friam mailing list