From: Stephan Tolksdorf <andorxor@gmx.de>
To: caml-list@inria.fr
Subject: Unbound type constructor
Date: Sat, 3 Feb 2001 18:16:56 +0100 [thread overview]
Message-ID: <9114178788.20010203181656@gmx.de> (raw)
I'm learning OCaml...
The following code snippet fails due to an "unbound type constructor"
error. How could I achieve the intended result in OCaml?
type combination = T1 of int | T2 of test | T3 of test * test
class test =
object
method virtual get : combination
end
PS: Naive question, why aren't there type members in OCaml classes?
Stephan Tolksdof
next reply other threads:[~2001-02-04 21:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-03 17:16 Stephan Tolksdorf [this message]
2001-02-04 22:23 ` Brian Rogoff
2001-02-05 2:21 ` Jacques Garrigue
2001-02-05 17:30 ` John Max Skaller
[not found] <Pine.BSF.4.21.0102050903120.28934-100000@shell5.ba.best.com>
2001-02-05 18:58 ` Stephan Tolksdorf
2001-02-06 16:35 ` Pierre Weis
2001-02-06 22:39 ` leary
2001-02-07 21:34 ` Pierre Weis
2001-02-08 7:36 ` Sven
2007-04-25 20:21 snowfall
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=9114178788.20010203181656@gmx.de \
--to=andorxor@gmx.de \
--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