[Shootout-list] dispatch bug?
Isaac Gouy
igouy2 at yahoo.com
Sun Aug 21 00:30:10 UTC 2005
--- Brian Hurt <bhurt at spnz.org> wrote:
> I had some spare time, and noticed that there were a couple of tests
> not
> implemented in Ocaml. So I decided to implement dispatch. I have
> code
> working, but I'm not getting the right checksum. The web page says
> that
> for N=10, the checksum should be 450, I'm getting like 1200.
>
> Looking at the problem, I think I may have found a bug in the code
> for the dispatch test. In both the C# and the D code, the next state
> after PressurizedUnsealed is Sealed, not PressurizedSealed.
Yes, I already fixed that bug for C#, thanks for noticing the D code
copied that bug.
Unfortunately that doesn't explain the problem with your program -
notice the PressurizedBottle checks cancel out.
(This is such a contrived test!)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Shootout-list
mailing list