OCaml 4.01.0
Licence d'utilisation
Le système OCaml est un logiciel libre : le compilateur est publié sous licence "Q Public License", et sa bibliothèque sous licence LGPL modifiée. Lire la licence pour plus de détails. Une licence du type BSD peut aussi être obtenue via l'inscription au Consortium Caml.
Cette page décrit la version 4.01.0 d'OCaml, publiée le 12 septembre 2013
Les nouveautés dans 4.01
Voici les principales nouveautés dans la version 4.01 :
It is now possible to have several variant constructors or record fields of the same name in scope, and type information will be used to disambiguate which one is used -- instead of always using the last one. See this post for a more detailed description of the feature.
New warnings can be activated to warn about identifiers that are used after having been shadowed by an
open
construct. Theopen
keyword can be writtenopen!
to silence this warning (asmethod!
silences the method warning).The compiler now suggests possible typos on "unbound identifier" errors.
Infix application operators
(|>)
and(@@)
are added toPervasives
.The
-short-path
option changes the way the type-checker prints types to pick a short representation (eg.string
instead ofStringSet.elt
).This release saw a lot of polishing with sets of changes in many places: the type system for GADTs, compilation speed with
-bin-annot
, ocamlbuild, the test suite, low-level optimizations, etc.
For more information, please consult the comprehensive list of changes.
Obtenir les sources
- Source tarball (.tar.gz) for compilation under Unix (including Linux and MacOS X) and Microsoft Windows (including Cygwin).
- Also available in .zip format.
- OPAM is a source-based distribution of OCaml and many companion libraries and tools. Compilation and installation are automated by powerful package managers.
- You also have access to the working sources and to all previous public releases.
Compilateurs OCaml alternatifs
Additionally, the following projects allow you to compile OCaml code to targets traditionally associated with other languages:
- The js_of_ocaml project, an OCaml to Javascript compiler (stable)
- The ocaml-java project, an OCaml to Java compiler (stable)
Manuel de référence
The user's manual for OCaml can be:
- browsed online,
- downloaded as a single PostScript, PDF, or plain text document,
- downloaded as a single TAR or ZIP archive of HTML files,
- downloaded as a single
tarball
of Emacs
info
files.