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 DCDE0BB91 for ; Sat, 29 Jan 2005 14:42:20 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0TDgKmD003353 for ; Sat, 29 Jan 2005 14:42:20 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA12212 for ; Sat, 29 Jan 2005 14:42:20 +0100 (MET) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0TDgJDx003346 for ; Sat, 29 Jan 2005 14:42:19 +0100 Received: by rproxy.gmail.com with SMTP id i8so34710rne for ; Sat, 29 Jan 2005 05:42:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Utyxr9SFTNB3yLYvidHmP5Cgn1n30/MB3WSd/tVynvtP79nOPQHWXeTyXyclUmnkIneRB915mQtovRdYbjEfutbnixD0puYrpQMKFsDYMDN02WHvzW5CgqOXYFrLEP56yohy2A5JxE+RTrYVQbBayPhfhujGKQ6ASCAmoTKXeBI= Received: by 10.38.164.45 with SMTP id m45mr116476rne; Sat, 29 Jan 2005 05:42:18 -0800 (PST) Received: by 10.38.97.65 with HTTP; Sat, 29 Jan 2005 05:42:18 -0800 (PST) Message-ID: <6b8a914205012905427c79cd85@mail.gmail.com> Date: Sat, 29 Jan 2005 14:42:18 +0100 From: Remi Vanicat Reply-To: Remi Vanicat To: caml-list Subject: Re: [Caml-list] cyclic types In-Reply-To: <7f8e92aa0501290415321a8e46@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <7f8e92aa0501290415321a8e46@mail.gmail.com> X-Miltered: at nez-perce with ID 41FB92BC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41FB92BB.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 abbreviation:01 -rectypes:01 ocaml:01 compiler:01 toplevel:01 cyclic:01 cyclic:01 remi:01 remi:01 vanicat:02 vanicat:02 tree:02 types:02 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.0 X-Spam-Level: On Sat, 29 Jan 2005 14:15:43 +0200, Radu Grigore wrote: > Why are cyclic types forbidden? > > I was forced to use the definition: > type forest = Forest of forest StringMap.t | Empty > where I would have rather used > type forest = forest StringMap.t > The error is: > The type abbreviation tree is cyclic You can use the -rectypes of the ocaml compiler or toplevel to allow cyclic type.