Browse thread
warning on value shadowing
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] warning on value shadowing |
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