From: Andrej Bauer <Andrej.Bauer@andrej.com>
To: Jacques Le Normand <rathereasy@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] using functors in objects
Date: Thu, 10 Apr 2008 14:05:55 +0200 [thread overview]
Message-ID: <47FE02A3.2030503@andrej.com> (raw)
In-Reply-To: <f74178430804091752t1966ca08n87a12cab9f064736@mail.gmail.com>
Perhaps something like this with recursive modules. I have a feeling it
can be simplified, though.
Andrej
--------------------
module A (X: sig type t end) =
struct
class c =
object
val b = (None : X.t option)
end
end
module rec D : sig
class d : object val b : D.d option end
end =
struct
class d =
object
inherit Y.c
end
end
and Y :
sig
class c : object val b : D.d option end
end =
A(struct type t = D.d end)
class d = D.d
----------------
next prev parent reply other threads:[~2008-04-10 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-10 0:52 Jacques Le Normand
2008-04-10 12:05 ` Andrej Bauer [this message]
2008-04-11 7:52 ` [Caml-list] " Julien Signoles
2008-04-11 11:59 ` Andrej Bauer
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=47FE02A3.2030503@andrej.com \
--to=andrej.bauer@andrej.com \
--cc=caml-list@inria.fr \
--cc=rathereasy@gmail.com \
/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