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
]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.