From: michael.le_barbier@laposte.net (Michaël Le Barbier)
To: Andrej.Bauer@andrej.com
Cc: "Michaël Le Barbier" <michael.le_barbier@laposte.net>,
caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Strategy to avoid name collision in signatures
Date: Sun, 04 Nov 2007 07:15:44 +0100 [thread overview]
Message-ID: <864pg28rjj.fsf@Llea.celt.neu> (raw)
In-Reply-To: <472CFA7C.60901@fmf.uni-lj.si> (Andrej Bauer's message of "Sat\, 03 Nov 2007 23\:47\:24 +0100")
Andrej Bauer <Andrej.Bauer@fmf.uni-lj.si> writes:
> If you really want to "blend" together OrderedType and FunnyType in the
> same module, then they must be meaningfully related. What example do you
> have in mind?
A real example is where FunnyType.Make will add conveniance functions
to a ring structure (math rings). Let's say FunnyType.PROTO defines
...
one: t
zmul: int -> t ->t
...
FunnyProto.Make will add few functions to this interface, e.g.
mone: t (= zmul (-1) one)
two: t (= zmul 2 one)
--
All the best,
Michaël LB
next prev parent reply other threads:[~2007-11-04 6:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-03 22:20 Michaël Le Barbier
2007-11-03 22:47 ` [Caml-list] " Andrej Bauer
2007-11-04 6:15 ` Michaël Le Barbier [this message]
2007-11-04 0:01 ` Julien Moutinho
2007-11-04 7:34 ` Michaël Le Barbier
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=864pg28rjj.fsf@Llea.celt.neu \
--to=michael.le_barbier@laposte.net \
--cc=Andrej.Bauer@andrej.com \
--cc=caml-list@yquem.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