From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 3D975BB91 for ; Sat, 25 Dec 2004 20:53:04 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBPJr3B5031792 for ; Sat, 25 Dec 2004 20:53:04 +0100 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 UAA22677 for ; Sat, 25 Dec 2004 20:53:03 +0100 (MET) From: briand@aracnet.com Received: from jade.spiritone.com (jade.aracnet.com [216.99.193.136]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBPJr1Px031789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 25 Dec 2004 20:53:03 +0100 Received: from soggy.deldotd.com (216-99-206-32.cust.aracnet.com [216.99.206.32]) by jade.spiritone.com (8.12.8/8.12.8) with ESMTP id iBPJr0MD003040 for ; Sat, 25 Dec 2004 11:53:00 -0800 Received: from briand by soggy.deldotd.com with local (Exim 3.36 #1 (Debian)) id 1CiHyG-00071U-00 for ; Sat, 25 Dec 2004 11:53:00 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16845.50460.152550.387582@soggy.deldotd.com> Date: Sat, 25 Dec 2004 11:53:00 -0800 To: caml-list@inria.fr Subject: method name collision ? X-Mailer: VM 6.92 under Emacs 21.3.1 X-Miltered: at nez-perce with ID 41CDC51F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41CDC51D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; gdraw:01 inherit:01 defining:01 defined:01 int:01 int:01 unit:02 inheriting:03 seems:03 brian:03 enlighten:05 collision:06 sense:08 i'm:08 expected:11 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.2 required=5.0 tests=FORGED_RCVD_HELO,NO_REAL_NAME autolearn=disabled version=3.0.0 X-Spam-Level: I'm getting the following error The method point has type 'a -> 'b but is expected to have type x:int -> y:int -> unit for this code : method point p0 = etc.. The error makes sense, as in, I know that it is colliding with a method defined in the drawable class. However I am inheriting the class using : inherit GDraw.drawable ?colormap w as drawable It seems to me that the method I am defining, self#point, and the method in drawable, i.e. drawable#point, are distinct and therefore I should not be seeing this error message ? Can someone enlighten me ? Thanks Brian