English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Private types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-30 (20:34)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] Private types

Le 30 oct. 08 ŕ 21:18, David Allsopp a écrit :

> Shouldn't I now be able to say:
> string_of_int x;;

I don't think so. According to the manual [1] the only thing you can  
do on private types is pattern match or project their fields. I  
doesn't mean your type can be substituted by int.


[1] http://caml.inria.fr/pub/docs/manual-ocaml/manual021.html#htoc99