From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id E5679BCAF for ; Wed, 15 Jun 2005 17:01:34 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j5FF1Ybp032341 for ; Wed, 15 Jun 2005 17:01:34 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA29468 for ; Wed, 15 Jun 2005 17:01:34 +0200 (MET DST) Received: from lri.lri.fr (lri.lri.fr [129.175.15.1]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j5FF1XKp015496 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 15 Jun 2005 17:01:33 +0200 Received: from localhost (localhost [127.0.0.1]) by lri.lri.fr (Postfix) with ESMTP id 9992D19E96F; Wed, 15 Jun 2005 17:01:33 +0200 (CEST) Received: from lri.lri.fr ([127.0.0.1]) by localhost (lri.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09709-01; Wed, 15 Jun 2005 17:01:33 +0200 (CEST) Received: from smtp.lri.fr (serveur3-5 [129.175.3.5]) by lri.lri.fr (Postfix) with ESMTP id 84BDD19E96B; Wed, 15 Jun 2005 17:01:33 +0200 (CEST) Received: from pc8-102 (pc8-102 [129.175.8.102]) by smtp.lri.fr (Postfix) with ESMTP id 29F77CED98; Wed, 15 Jun 2005 17:01:33 +0200 (CEST) Received: from pc8-102 ([127.0.0.1] helo=localhost) by pc8-102 with esmtp (Exim 3.36 #1 (Debian)) id 1DiZOV-00056B-00; Wed, 15 Jun 2005 17:01:31 +0200 Date: Wed, 15 Jun 2005 17:01:30 +0200 (CEST) From: Julien Signoles X-X-Sender: signoles@pc8-102 To: Damien Bobillot Cc: caml-list@inria.fr Subject: Re: [Caml-list] Inter-module dependences In-Reply-To: <7E5A2BF0-8CE7-4680-9D4B-60732DE9C8C6@m4x.org> Message-ID: References: <7E5A2BF0-8CE7-4680-9D4B-60732DE9C8C6@m4x.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at lri.fr X-Miltered: at concorde with ID 42B042CE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42B042CD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; signoles:01 signoles:01 lri:01 caml-list:01 dependences:01 struct:01 compiler:01 struct:01 lri:01 ...:98 ...:98 unbound:01 equality:01 constructor:01 module:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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: module Make_MyGraph (V: MYVERTEX) (E: EDGE with type t = V.edge and type vertex = V.t) = struct ... end Hope this helps, Julien -- mailto:Julien.Signoles@lri.fr ; http://www.lri.fr/~signoles "In theory, practice and theory are the same, but in practice they are different" (Larry McVoy)