From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p8GEx1GC010778 for ; Fri, 16 Sep 2011 16:59:07 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AikBAOdic07RVdK2mGdsb2JhbABBp1MIFAEBAQEBCAkNBxQlgWwCLAEbHgMSEF0BEQEFASIbGodZlHqCWAqLQYJahSA7iG0CAwaGcgSHbYtdjQE9g30 X-IronPort-AV: E=Sophos;i="4.68,393,1312149600"; d="scan'208";a="109357798" Received: from mail-iy0-f182.google.com ([209.85.210.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 16 Sep 2011 16:59:06 +0200 Received: by iadk27 with SMTP id k27so5137958iad.27 for ; Fri, 16 Sep 2011 07:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=VJgg3DjwnrEro+jhaVszeaiJxV7DXAJPwapI84GRRPI=; b=Iwrvm9vSvfFGQyLPD1NmrdOaJW4240VyJjQTHX2IjhgIfJ/rq749Nugd40cXyyMzRa NIcrBQ4FA3L0JJkr6B+AeCcoaGs+/Nu6VbUueyatUj/bOHDRNYcOhsLBb2AC6nE7moSy f8mkqvMwc7y8cuQRgGidC9hdsF0Hm1gr1S64U= MIME-Version: 1.0 Received: by 10.42.115.198 with SMTP id l6mr2892156icq.132.1316185145139; Fri, 16 Sep 2011 07:59:05 -0700 (PDT) Received: by 10.231.156.213 with HTTP; Fri, 16 Sep 2011 07:59:05 -0700 (PDT) Date: Fri, 16 Sep 2011 23:59:05 +0900 Message-ID: From: Jun Furuse To: caml-list Content-Type: text/plain; charset=ISO-8859-1 Subject: [Caml-list] A small patch for ocamlc 3.12.1 to find reudundant opens Hi, I have written a patch to detect redundant opens in OCaml source code, which is useful to keep your opened module list minimum. Keeping the list smaller is good to avoid name space contamination. You can obtain the latest diff for OCaml 3.12.1 from my repo at https://bitbucket.org/camlspotter/mutated_ocaml . After cloning, get it by: hg diff -r ocaml-3.12.1-11110 -r redundant_open_warning After patching, building is as usual: make core coreboot world opt opt.opt install # Beware what you are doing! I have found nearly 150 redundant opens in OCaml source code! You should check your OCaml code with it, too! http://camlspotter.blogspot.com/2011/09/redundant-open-module-warning-for-ocaml.html Jun Furuse