|
|
> http://download.orphi.me.uk/Haskell/Wavetank-B21.exe (222 KB)
This has a bug: If you feed the program the wrong coordinates, it's
possible to make it actually segfault. (!!)
That's what you get for premature optimisation... *sigh*
I will put out a corrected build shortly. (The bug is already fixed. I
want to add a few other features as well though...)
[For anyone who cares: As is probably obvious, the bug is a simple
unchecked array access glitch. The ironic thing is that in Haskell, you
have to go out of your way to explicitly request that array accesses be
unchecked; by default they're checked. I had the checks turned off for
speed reasons. And sure enough, my internal code works fine. I'd
forgotten the user-supplied coordinates might not be in range...]
Post a reply to this message
|
|