Version française
Home     About     Download     Resources     Contact us    
Browse thread
Private type syntax and error message
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Colonna Francois <francois.colonna_cesari@u...>
Subject: Re: [Caml-list] Private type syntax and error message
Le vendredi 12 septembre 2008 à 15:43 +0200, Colonna Francois a écrit :
> Hello,
> 
> if, as I found in the documentation, I write :
>  
> # type my_int = private int;;
> 
> I get the message : "This fixed type is not an object or variant"
> 
> 1. The message is very obscure
> 2. why this syntax is not implemented as it should be ?
> 

Sorry,

I found in http://caml.inria.fr/mantis/view.php?id=4584 the answer to my
question. X. Leroy said there :

The "private type abbreviations" feature of 3.11 ....

  type t = private float
 

So, I shall wait a few monthes. No problem.
Thanks any ways to thoses who answered.

Best,
François Colonna