diff options
author | Alain Frisch <alain@frisch.fr> | 2009-10-20 09:04:37 +0000 |
---|---|---|
committer | Alain Frisch <alain@frisch.fr> | 2009-10-20 09:04:37 +0000 |
commit | ada68db994d45acef53e23cd6bedfd2bc4b3e5af (patch) | |
tree | 60392fc0b2729d1382f99887dae2c8e1789bb956 | |
parent | 09cb552e178f1468e6736b2f262a057923e3a964 (diff) | |
download | ocaml-ada68db994d45acef53e23cd6bedfd2bc4b3e5af.tar.gz |
Update Changes.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9383 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | Changes | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -8,6 +8,11 @@ Language features: { lbl } stands for { lbl = lbl } and { M.lbl } for { M.lbl = lbl } - Record patterns of the form { lbl = pat; _ } to mark that not all labels are listed, purposefully. (See new warning below.) +- Explicit naming of a generic type; in an expression like "fun ... (type t) ... -> e", + the type t is considered abstract in its scope (the arguments that follow it and the body + of the function), and then replaced by a fresh type variable. In particular, the type t + can be used in contexts where a type variable is not allowed (e.g. for defining + an exception in a local module). Compilers and toplevel: - New warning (activated by 'E', the fragile match warning) to signal |