From: pbrisset@eis.enac.dgac.fr
To: caml-list@margaux.inria.fr
Cc: pbrisset@eis.enac.dgac.fr
Subject: type and class definition : recursion
Date: Tue, 14 May 1996 14:11:55 +0200 [thread overview]
Message-ID: <199605141211.OAA06278@concorde.inria.fr> (raw)
Hello,
I would like to define a class and a type with a mutual recursion between
them. Something like
type t = A
| B of c
and class c (x:t) =
val mutable value = x
end
Is it possible with O'caml ?
--------------
Pascal Brisset
ENAC, 7 avenue Edouard Belin, BP 4005, F-31055 Toulouse Cedex, France
Tel: +33 62 17 40 53, E-mail: pbrisset@eis.enac.dgac.fr, Fax: +33 62 17 41 43
next reply other threads:[~1996-05-14 18:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-14 12:11 pbrisset [this message]
1996-05-14 20:04 ` Christian Boos
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=199605141211.OAA06278@concorde.inria.fr \
--to=pbrisset@eis.enac.dgac.fr \
--cc=caml-list@margaux.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