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
]Caml-list] Types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-06-19 (06:42)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: ]Caml-list] Types

Is it possible to create a record type that has a member which is a
polymorphic type?

I tried: type rect = { mutable x1: 'a; ... } but that doesn't work.
Also, type a = A of 'a doesn't seem to work either.