<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/e32a56a54549a51d40bf49d519307fa3"
  from="Jonathan Roewen &lt;jonathan.roewen@g...&gt;"
  author="Jonathan Roewen"
  date="2006-02-08T23:41:44"
  subject="Re: [Caml-list] Namespace clash"
  prev="2006/02/7bdea4caa181776d4c2dc27c6d233e19"
  next="2006/02/98afe4bd6bd99dce30d22457a8603628"
  prev-in-thread="2006/02/4ffb4c99b0e01144449b378a59595868"
  next-in-thread="2006/02/98afe4bd6bd99dce30d22457a8603628"
  prev-thread="2006/02/59ebc436836c381d6e159fc9fb1c7bcb"
  next-thread="2006/02/824d8233647c2ff564bcd55a138f5a35"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Namespace clash">
<msg 
  url="2006/02/4ffb4c99b0e01144449b378a59595868"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-02-08T13:37:47"
  subject="Namespace clash">
<msg 
  url="2006/02/e32a56a54549a51d40bf49d519307fa3"
  from="Jonathan Roewen &lt;jonathan.roewen@g...&gt;"
  author="Jonathan Roewen"
  date="2006-02-08T23:41:44"
  subject="Re: [Caml-list] Namespace clash">
</msg>
<msg 
  url="2006/02/98afe4bd6bd99dce30d22457a8603628"
  from="Alain Frisch &lt;Alain.Frisch@i...&gt;"
  author="Alain Frisch"
  date="2006-02-09T05:08:45"
  subject="Re: [Caml-list] Namespace clash">
<msg 
  url="2006/02/3a34cd8fecbd200496d2dfeb2fbe0d71"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-02-09T11:22:25"
  subject="Re: [Caml-list] Namespace clash">
<msg 
  url="2006/02/3e47107a02b2577321ac1c0d61fe9948"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2006-02-09T14:51:46"
  subject="Re: [Caml-list] Namespace clash">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
I made such a modification to ocaml compiler to do this, and submitted
my patch to mantis. I don't know if Xavier et al care too much about
my patch, but it is fairly trivial to implement (a string list ref,
and a fold).

Jonathan

On 2/9/06, Alessandro Baretta &lt;a.baretta@barettadeit.com&gt; wrote:
&gt; Gentlemen--most specifically Xavier,
&gt;
&gt; Every other year I have mentioned on this list that I have encountered a module
&gt; name clash problem, rendering some bit of code unusable and my life very
&gt; miserable. It happened again today. Hence, this post, to help me relieve my
&gt; frustration.
&gt;
&gt; Luckily, today I control one of the two modules whose names collide, so I can
&gt; easily overcome the problem by renaming one file and changing all relevant
&gt; references to it in a relativeley self-contained sub-project of my full source
&gt; tree. Were it otherwise, I'd be in trouble. Let me state that I am currently
&gt; managing a source tree comprising approximately ten man years of work and
&gt; 236klocs as of today, including generated code. When a project grows to this
&gt; size, it is relatively easy to produce such name clashes.
&gt;
&gt; The clashing modules are Liveness in the metanative.cmxa library of the
&gt; MetaOcaml project and a Liveness module in a PLC application based on my
&gt; AS/Xcaml. I realize that "liveness" is a meaningful word to a compiler author,
&gt; but it also is to a automation engineer. It is doubtful that either the
&gt; MetaOcaml team or I have a greater right to this name, and it is unreasonable to
&gt; renounce many useful words just because they might be of common interest.
&gt;
&gt; Xavier's official position until now has been the following: "You guys have the
&gt; -pack option; use it." This is probably the best solution overall, but it is
&gt; hardly reconcilable with the fact that out there in the wild--and in my own
&gt; repository--there are truckloads and truckloads of code that don't use it and
&gt; that would need to be modified to use it, because of the need to explicity open
&gt; in the projects source files all referenced libraries. Hence, it is impossibile
&gt; for the build system to automatically manage namespacing issues.
&gt;
&gt; Probably, all that ocaml lacks to properly handle namespacing is a -open
&gt; directive, telling the compiler to imply a "open Xxxx" at the beginning of all
&gt; .ml and .mli files on the command line. Given this compiler flag, the build
&gt; system could take care of everything.
&gt;
&gt; I'm sure there are other ways to solve this issue, and I'm non really trying to
&gt; sell anyone my idea. As I stated, I'm just writing to relieve my frustration.
&gt;
&gt; Alex
&gt;
&gt; --
&gt; *********************************************************************
&gt;
&gt; Ing. Alessandro Baretta
&gt;
&gt; Studio Baretta
&gt; http://studio.baretta.com/
&gt;
&gt; Consulenza Tecnologica e Ingegneria Industriale
&gt; Technological Consulting and Industrial Engineering
&gt;
&gt; tel. +39 02 370 111 55
&gt; fax. +39 02 370 111 54
&gt;
&gt; _______________________________________________
&gt; Caml-list mailing list. Subscription management:
&gt; http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
&gt; Archives: http://caml.inria.fr
&gt; Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
&gt; Bug reports: http://caml.inria.fr/bin/caml-bugs
&gt;

</contents>

</message>

