From: "Sylvain BOULM'E" <Sylvain.Boulme@lip6.fr>
To: caml-list@inria.fr
Subject: Re: Tree of a certain class:
Date: Fri, 24 Sep 1999 14:18:54 +0200 [thread overview]
Message-ID: <199909241218.OAA19643@ventoux.lip6.fr> (raw)
In-Reply-To: Your message of "Fri, 24 Sep 1999 10:15:52 +0200." <37EB3338.4E226250@unibw-muenchen.de>
Hello,
Actually, #debug is an abbrevation for
<method debug : unit; ..>
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.
next prev parent reply other threads:[~1999-09-24 16:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-17 1:13 What am I missing? skaller
1999-09-17 12:44 ` Pierre Weis
1999-09-24 8:15 ` Tree of a certain class: Peter Schrammel
1999-09-24 12:06 ` Pierre Boulet
1999-09-24 12:18 ` Sylvain BOULM'E [this message]
1999-09-24 12:35 ` Jerome Vouillon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199909241218.OAA19643@ventoux.lip6.fr \
--to=sylvain.boulme@lip6.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox