diff options
author | Pierre Weis <Pierre.Weis@inria.fr> | 2004-06-14 21:29:05 +0000 |
---|---|---|
committer | Pierre Weis <Pierre.Weis@inria.fr> | 2004-06-14 21:29:05 +0000 |
commit | e0122726af55d8c81286b66a32adaee99e0573ae (patch) | |
tree | 3892c786c8966719e081417839b0f20a98d19c5b /win32caml/ocaml.c | |
parent | fcb86d407d1edeace3a80b0a361ffd062ebd2450 (diff) |
Implementation of an extension of record typing: the first path
annotated label in a record implies the implicit path annotations of
the other labels. This way, a single annotation allows the
simultaneous annotation of the whole set of labels. This is a
conservative extension, since all the labels of a record must already
belong to the same module. Hence, any program that was typable before,
had this property and is thus still typable in the new scheme.
This new treatment provides a simple way to desambiguate labels in
mass, just adding a module path annotation on one of the field labels;
this slight improvement of record typing thus avoids the burden of
repeating Module.label for each label of the record.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6409 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'win32caml/ocaml.c')
0 files changed, 0 insertions, 0 deletions