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
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: David Teller <David.Teller@u...>
Subject: Re: [Caml-list] Attach an invariant to a type
Actually, OCaml contains something slighly simpler than this of_int /
to_int mechanism: private types.

On Thu, 2008-01-31 at 14:50 +0100, Romain Bardou wrote:

> 2) (much better imo) use a module with an abstract type, such as:

David Teller
 Security of Distributed Systems
 Angry researcher: French Universities need reforms, but the LRU act
brings liquidations.