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 JAA00351; Wed, 3 Mar 2004 09:16:38 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 JAA01349 for ; Wed, 3 Mar 2004 09:16:37 +0100 (MET) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i238GjIq011331 for ; Wed, 3 Mar 2004 09:16:46 +0100 Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2-20030924/3.7W) with ESMTP id RAA02332; Wed, 3 Mar 2004 17:16:27 +0900 (JST) To: alex@baretta.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] Typechecking madness In-Reply-To: <40434623.6040100@baretta.com> References: <40434623.6040100@baretta.com> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20040303171627X.garrigue@kurims.kyoto-u.ac.jp> Date: Wed, 03 Mar 2004 17:16:27 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 jacques:01 baretta:01 baretta:01 pxp:01 pxp:01 ellipsis:01 ellipsis:01 jacques:01 typechecking:01 alex:01 alex:01 garrigue:01 garrigue:01 behaviour:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 32 From: Alex Baretta > I'm sure the typechecker knows what he's doing, but the following error > message does look strange. > > This expression has type > 'a. (('a Pxp_document.node #Pxp_document.extension as 'a) -> unit) -> > unit > but is here used with type > 'b. (('b Pxp_document.node #Pxp_document.extension as 'b) -> unit) -> > unit > > Is this due to the two '#' signs on Pxp_document.extension, yielding two > different ellipsis type variables? Indeed, this is a strange error message. As far as I can see, it really says "This expression has type t but is here used with type t". 'a and 'b are bound variables, so the ellipsis is not the problem. Even if the type checking is correct in detecting a type error, this is not a valid error message. Can you send me a sufficiently small program exhibiting this behaviour? Jacques Garrigue ------------------- 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