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 OAA05052; Fri, 30 Aug 2002 14:37:17 +0200 (MET DST) 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 OAA05010 for ; Fri, 30 Aug 2002 14:37:16 +0200 (MET DST) Received: from post.webmailer.de (natwar.webmailer.de [192.67.198.70]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7UCbED10362 for ; Fri, 30 Aug 2002 14:37:14 +0200 (MET DST) Received: from localhost.localdomain (pD9E658ED.dip.t-dialin.net [217.230.88.237]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id OAA07349 for ; Fri, 30 Aug 2002 14:37:11 +0200 (MEST) Received: (from david@localhost) by localhost.localdomain (8.11.6/8.11.6) id g7UCMG003302; Fri, 30 Aug 2002 14:22:16 +0200 X-Authentication-Warning: localhost.localdomain: david set sender to dfrese@dfrese.de using -f Subject: [Caml-list] Recursive type and class From: David Frese To: Caml-list Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 30 Aug 2002 14:22:16 +0200 Message-Id: <1030710136.1831.11.camel@pc-6> Mime-Version: 1.0 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello folks, I have a problem with mixing a class and a type recursively. Written down directly, I want to have something like this: type atype = Obj of aclass | I of int class aclass = object val mutable field0 : atype = I 5 end But this does not work, of course. Can anyone tell me, how this can be done? Thanks, David. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners