From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA30391; Wed, 9 Jan 2002 17:50:06 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 RAA29911 for ; Wed, 9 Jan 2002 17:50:05 +0100 (MET) Received: from buffalo.ens-lyon.fr (buffalo.ens-lyon.fr [140.77.1.8]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g09Go4P10418 for ; Wed, 9 Jan 2002 17:50:04 +0100 (MET) Received: from prometheus (prometheus [140.77.128.167] (may be forged)) by buffalo.ens-lyon.fr (8.11.6/8.11.2) with ESMTP id g09Go2L03310 for ; Wed, 9 Jan 2002 17:50:02 +0100 (MET) From: "Boris Yakobowski" To: Subject: [Caml-list] Nested classes and types Date: Wed, 9 Jan 2002 17:50:12 +0100 Message-ID: <000201c1992d$b4f0e9f0$a7804d8c@prometheus> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I need to declare two types depending one on the other ; one of them is a class type, with a menber variable of the second type, and the other one is a basic type with a constructor needing an argument of the first type. Example : class type c_foo = object val val_foo : t_foo end and t_foo = Foo of c_foo However, that syntax doesn't work ; is there a correct one ? Thank you for hour help. Boris Yakobowski ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr