Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] syntax of private constructors in CVS version
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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 Archives:
Bug reports: FAQ:
Beginner's list: