From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA07209; Tue, 17 Jun 2003 15:44:40 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA07258 for ; Tue, 17 Jun 2003 15:44:39 +0200 (MET DST) Received: from mail0.epfl.ch (mail0.epfl.ch [128.178.50.57]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id h5HDicH08108 for ; Tue, 17 Jun 2003 15:44:38 +0200 (MET DST) Received: (qmail 29609 invoked from network); 17 Jun 2003 13:44:37 -0000 Received: from lamppc31.epfl.ch (128.178.154.39) by mail0.epfl.ch with SMTP; 17 Jun 2003 13:44:37 -0000 Subject: Re: [Caml-list] signature mismatch From: Damien Pous Cc: caml-list@inria.fr In-Reply-To: <20030617132753.GA20764@anu.edu.au> References: <20030617132753.GA20764@anu.edu.au> Content-Type: text/plain Message-Id: <1055857476.7465.14.camel@lamppc31.epfl.ch> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 17 Jun 2003 15:44:37 +0200 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; damien:01 ens-lyon:01 caml-list:01 mismatch:01 struct:01 int:01 module:03 abstract:03 types:03 let:04 distinct:05 definitions:07 type:07 can't:15 test:16 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk AA.t and BB.t are two distinct abstract types, so they can't be unified, you should export the type definitions in AA and BB : module AA : A1 with type t = int = struct type t = int let test f1 f2 = true end module BB : A2 with type t = int = struct type t = int let toast f1 f2 = false end module C = Make (AA) (BB) damien ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners