From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 4251BBBFB for ; Sun, 19 Jun 2005 09:09:16 +0200 (CEST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id j5J79FJK026266 for ; Sun, 19 Jun 2005 09:09:16 +0200 Received: (qmail invoked by alias); 19 Jun 2005 07:09:15 -0000 Received: from p54A34372.dip0.t-ipconnect.de (EHLO [192.168.2.136]) [84.163.67.114] by mail.gmx.net (mp002) with SMTP; 19 Jun 2005 09:09:15 +0200 X-Authenticated: #20477425 From: Michael Wohlwend To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ]Caml-list] Types Date: Sun, 19 Jun 2005 09:09:19 +0200 User-Agent: KMail/1.8 References: In-Reply-To: X-Face: S)[vu%Bha1d&ej9GfwAq~7C}A,y[B.uS}+D6'hb~xPwsxymw$fnCOaMe<=?utf-8?q?*bnUajSBR=5Fm=3FR=0A=09?=@V3;iX8[A}z`.%pEQ1r7iZhN8#ktTCBQ}&mkx>=RH&l|l6\]NZI@ MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506190909.19767.micha-1@fantasymail.de> X-Y-GMX-Trusted: 0 X-Miltered: at nez-perce with ID 42B51A1B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 caml-list:01 mutable:01 mutable:01 cheers:01 ...:98 wrote:01 polymorphic:01 types:02 rect:95 rect:95 seem:07 michael:08 michael:08 2005:89 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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