[Shootout-list] dispatch
José Bollo
jose.bollo at tele2.fr
Fri Jul 29 17:07:31 UTC 2005
Le vendredi 29 Juillet 2005 07:14, Jon Harrop a écrit :
> I've just written a few OCaml implementations of the dispatch test. This is
> another test which computes a trivially reducible expression (the answer is
> 450N) and, unsurprisingly, a line must be drawn completely arbitrary to
> determine which implementations are and are not allowed, i.e.
> "print(450*n)" is probably not allowed.
ooooh ocaml is really good!
But it is ?maybe? not what is expected.
A solution is to replace the constant state's value by parametric ones. The
values would be given as arguments to the program.
dispatch 1 2 3 4 5 6 7
must give the same result.
More information about the Shootout-list
mailing list