[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Michael Wohlwend <micha-1@f...> |
| Subject: | Re: [Caml-list] ]Caml-list] Types |
On Sunday 19 June 2005 08:42, Jonathan Roewen wrote:
> Hi,
>
> 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.
how about:
type 'a rect = { mutable x1:'a }
cheers
Michael