From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA30357 for caml-redistribution; Fri, 24 Sep 1999 18:05:24 +0200 (MET DST) 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 OAA26715 for ; Fri, 24 Sep 1999 14:18:49 +0200 (MET DST) Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id OAA18900 for ; Fri, 24 Sep 1999 14:18:48 +0200 (MET DST) Received: from spi.lip6.fr (monbazillac.lip6.fr [132.227.82.65]) by isis.lip6.fr (8.8.8/jtpda-5.2.9.1+lip6) with ESMTP id OAA16961 for ; Fri, 24 Sep 1999 14:18:46 +0200 (MET DST) Received: from ventoux.lip6.fr (root@ventoux.lip6.fr [132.227.83.34]) by spi.lip6.fr (8.8.6/jtpda-5.2) with ESMTP id OAA20847 for ; Fri, 24 Sep 1999 14:18:42 +0200 (MET DST) Received: from ventoux.lip6.fr (530@localhost [127.0.0.1]) by ventoux.lip6.fr (8.8.7/jtpda-5.2) with ESMTP id OAA19643 for ; Fri, 24 Sep 1999 14:18:55 +0200 Message-Id: <199909241218.OAA19643@ventoux.lip6.fr> X-Mailer: exmh version 2.0.2 To: caml-list@inria.fr Subject: Re: Tree of a certain class: In-Reply-To: Your message of "Fri, 24 Sep 1999 10:15:52 +0200." <37EB3338.4E226250@unibw-muenchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 24 Sep 1999 14:18:54 +0200 From: "Sylvain BOULM'E" Sender: weis Hello, Actually, #debug is an abbrevation for where ".." is a row type variable, you may imagine as universally quantified. And methods of a class are not allowed to be polymorphic. Only classes are. So, you have to bound this row variable to a type parameter of the class. * So a general solution is : class ['a] dtree = object constraint 'a=#debug inherit ['a] ctree end * But if you want only a "debug tree", you may write : class dtree = object inherit [debug] ctree end Regards, Sylvain.