From: Peter Schrammel <peter.schrammel@unibw-muenchen.de>
To: Pierre Weis <Pierre.Weis@inria.fr>, caml-list@inria.fr
Subject: Tree of a certain class:
Date: Fri, 24 Sep 1999 10:15:52 +0200 [thread overview]
Message-ID: <37EB3338.4E226250@unibw-muenchen.de> (raw)
In-Reply-To: <199909171244.OAA22193@pauillac.inria.fr>
I wrote a Program:
type 'i tree =
Empty
| Item of 'i
| Section of 'i * 'i
class ['i] ctree =
object (self : 'a)
val mutable content : 'i tree = Empty
method get = content
end
class debug =
object
method debug = ()
end
class dtree =
object
inherit [#debug] ctree
end
But the compiler gives me the error:
Some type variables are unbound in this type:
class dtree :
object val mutable content : (#debug as 'a) tree method get : 'a
tree end
The method get has type #debug tree where .. is unbound
make: *** [test.cmo] Error 2
How can make trees of a certain (sub)class ? (I hope there's a simple
solution)
Regards,
Peter
--
Peter Schrammel
UniBw-Muenchen 106/2/116
85579 Neubiberg
ICQ: 5469131
next prev parent reply other threads:[~1999-09-24 11:33 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 ` Peter Schrammel [this message]
1999-09-24 12:06 ` Tree of a certain class: Pierre Boulet
1999-09-24 12:18 ` Sylvain BOULM'E
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=37EB3338.4E226250@unibw-muenchen.de \
--to=peter.schrammel@unibw-muenchen.de \
--cc=Pierre.Weis@inria.fr \
--cc=caml-list@inria.fr \
--cc=peter.schrammel@gmx.de \
/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