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 WAA15433; Thu, 3 Apr 2003 22:58:39 +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 WAA13154 for ; Thu, 3 Apr 2003 22:58:38 +0200 (MET DST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id h33Kwb520690 for ; Thu, 3 Apr 2003 22:58:37 +0200 (MET DST) Received: (qmail 33981 invoked from network); 3 Apr 2003 20:58:36 -0000 Received: from arda.pair.com (HELO compaqreview.d6.com) (209.68.1.133) by relay.pair.com with SMTP; 3 Apr 2003 20:58:36 -0000 X-pair-Authenticated: 209.68.1.133 Message-Id: <4.3.2.7.2.20030403125225.04a69d30@localhost> X-Sender: checker@localhost X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Thu, 03 Apr 2003 12:53:56 -0800 To: Pierre Weis , jyh@cs.caltech.edu (Jason Hickey) From: Chris Hecker Subject: Re: [Caml-list] How can I check for the use of polymorphic equality? Cc: caml-list@inria.fr In-Reply-To: <200304032040.WAA14527@pauillac.inria.fr> References: <3E8C8F27.1070001@cs.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam: no; 0.00; hecker:01 checker:01 caml-list:01 chris:01 caml:01 equality:01 polymorphic:01 obj:03 abstract:03 seems:05 probably:05 requires:06 suggestion:06 type:07 scope:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >You probably will catch every reasonable usage of ( = ) that way... >Simple, no ? But that a) requires you to put it in scope at the top of each file, and more importantly b) means you can't use = anywhere, doesn't it? That seems kinda strong for the very specific check, and the abstract type thing (which was going to be my suggestion as well, but I forgot you could do it with Obj all in caml!) is both localized and only catches the ones you care about. Chris ------------------- 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