From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr 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 426E6BC6B for ; Wed, 21 Feb 2007 23:31:46 +0100 (CET) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1LMVjhE021628 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 21 Feb 2007 23:31:46 +0100 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay01.plus.net with esmtp (Exim) id 1HK000-0006yG-J7 for caml-list@yquem.inria.fr; Wed, 21 Feb 2007 22:31:45 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] warning on value shadowing Date: Wed, 21 Feb 2007 22:25:16 +0000 User-Agent: KMail/1.9.5 References: <45DCAE89.1050904@gnu.org> In-Reply-To: <45DCAE89.1050904@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702212225.16952.jon@ffconsultancy.com> X-Miltered: at concorde with ID 45DCC851.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; foo:01 quux:01 foo:01 quux:01 ocaml:01 ocaml:01 frog:98 wrote:01 caml-list:01 define:01 compiling:02 style:93 annoying:06 warned:08 versa:09 On Wednesday 21 February 2007 20:41, Sam Steingold wrote: > Proposal: > When both foo.ml and bar.ml define zot and quux.ml opens both Foo and > Bar, there should be a warning (when compiling quux) about Foo.zot being > shadowed by Bar.zot (or vice versa, depending on the order of the open > statements). I think this is such a common style (I use shadowing deliberately all the time) that it would be very annoying to be warned about it. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists