From: Jun Furuse <jun.furuse@gmail.com>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] A small patch for ocamlc 3.12.1 to find reudundant opens
Date: Fri, 16 Sep 2011 23:59:05 +0900 [thread overview]
Message-ID: <CAAoLEWuJDgZVCZ_rPY9GgAtjK2WnQ5WtvYB8_Yc_9wUDAOjepA@mail.gmail.com> (raw)
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
next reply other threads:[~2011-09-16 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 14:59 Jun Furuse [this message]
2011-09-16 16:20 ` Mehdi Dogguy
2011-09-17 5:23 ` Jun Furuse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAoLEWuJDgZVCZ_rPY9GgAtjK2WnQ5WtvYB8_Yc_9wUDAOjepA@mail.gmail.com \
--to=jun.furuse@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox