From: Damien Bobillot <damien.bobillot@m4x.org>
To: Julien Signoles <Julien.Signoles@lri.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Inter-module dependences
Date: Wed, 15 Jun 2005 18:18:56 +0200 [thread overview]
Message-ID: <D03D0267-0401-4420-AA10-359B68E9BF56@m4x.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0506151700180.11575@pc8-102>
[-- Attachment #1: Type: text/plain, Size: 606 bytes --]
Le 15 juin 05 à 17:01, Julien Signoles a écrit :
> Hello,
>
>> module Make_MyGraph(V : MYVERTEX with type edge = E.t)(E : EDGE with
>> type vertex = V.t) = struct
>> module V = V
>> module E = E
>> ...
>> end
>>
>> The compiler found an error on "with type edge = E.t" : "Unbound type
>> constructor E.t".
>>
>
> Remember: equality is commutative... You should write:
From this point of view, it's obvious... ;)
> module Make_MyGraph
> (V: MYVERTEX)
> (E: EDGE with type t = V.edge and type vertex = V.t) =
> struct
> ...
> end
--
Damien Bobillot
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2375 bytes --]
next prev parent reply other threads:[~2005-06-15 16:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-15 14:12 Damien Bobillot
2005-06-15 15:01 ` [Caml-list] " Julien Signoles
2005-06-15 16:18 ` Damien Bobillot [this message]
[not found] ` <6b8a9142050615083945b03312@mail.gmail.com>
2005-06-15 16:15 ` [Caml-list] Inter-module dependences [solved] Damien Bobillot
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=D03D0267-0401-4420-AA10-359B68E9BF56@m4x.org \
--to=damien.bobillot@m4x.org \
--cc=Julien.Signoles@lri.fr \
--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;
as well as URLs for NNTP newsgroup(s).