Version française
Home     About     Download     Resources     Contact us    
Browse thread
Attach an invariant to a type
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stéphane Glondu <steph@g...>
Subject: Re: [Caml-list] Attach an invariant to a type
Stéphane Lescuyer a écrit :
> No you're not :) as far as I know, a private type can only be a record
> or a variant.

Xavier mentioned the possibility to extend private types to any type:

  http://gallium.inria.fr/~xleroy/talks/cug2008.pdf (page 5)

So maybe Romain's code will work in a near future :-)


My 2 cents.

-- 
Stéphane