Browse thread
[Caml-list] syntax of private constructors in CVS version
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Laurent Vibert <lvibert@i...> |
| Subject: | Re: [Caml-list] syntax of private constructors in CVS version |
On Sun, 13 Jul 2003, John Max Skaller wrote:
> Pierre Weis wrote:
>
>
> > Records with mutable fields are permitted. Mutators explicitely exported
> > as functions are allowed, other mutations are forbidden.
>
So just a question : since mutations are forbidden, would it be safe to
relaxe the variance for mutable field, to allow something like
type +'a foo = private {mutable it : 'a}
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners