Citation
fabris
Ça me fait penser d'essayer d'installer OCaml
3.10 sous wine. Ça serait vraiment cool que ça
marche ...
Ça marche pour moi avec wine-0.9.50:
$ wget http:// kegel.com/wine/winetricks
$ wget http:// caml.inria.fr/pub/distrib/ocaml-3.10/ocaml-3.10.0-win-msvc.exe
$ sh winetricks vcrun2005
$ wine ocaml-3.10.0-win-msvc.exe
...
# type color_t = Blue | Red;;
type color_t = Blue | Red
# let color_printer ff col = match col with
Blue -> Format.fprintf ff "Blue_Color@."
| Red -> Format.fprintf ff "Red_Color@."
;;
val color_printer : Format.formatter -> color_t -> unit = <fun>
# #install_printer color_printer;;
# Blue;;
- : color_t = Blue_Color
Poste le Tuesday 11 December 2007 16:03:54