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 RAA03653; Wed, 30 Jan 2002 17:07:42 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA03583 for ; Wed, 30 Jan 2002 17:07:40 +0100 (MET) Received: from relay-1v.club-internet.fr (relay-1v.club-internet.fr [194.158.96.112]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g0UG7er00387 for ; Wed, 30 Jan 2002 17:07:40 +0100 (MET) Received: from warp (lns06v-10-129.w.club-internet.fr [212.194.117.129]) by relay-1v.club-internet.fr (Postfix) with SMTP id 6C7DB1789 for ; Wed, 30 Jan 2002 17:07:38 +0100 (CET) Message-ID: <005901c1a9a7$b1b97b00$8f00a8c0@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] Mixed class / type Date: Wed, 30 Jan 2002 17:03:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I got this problem : - two classes called wmenu and wmenuitem, are mutaly recursive - one wmenuitem can be constructed either with a wmenu or with a wmenuitem so I need a type like this : type menu = Mainmenu of wmenu | Menuitem of wmenuitem So I tryied : type menu = ..... and class wmenuitem : menu -> object ... end and class wmenu : object ... end But it doesn't work. Any clue is welcomed. Warp ------------------- 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