<?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/3a34cd8fecbd200496d2dfeb2fbe0d71"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-02-09T11:22:25"
  subject="Re: [Caml-list] Namespace clash"
  prev="2006/02/ff05617d502eccb73a82bc10fab8ba76"
  next="2006/02/868c01027ab05f2f2abcb97ba42a3100"
  prev-in-thread="2006/02/98afe4bd6bd99dce30d22457a8603628"
  next-in-thread="2006/02/3e47107a02b2577321ac1c0d61fe9948"
  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>
Alain Frisch wrote:
&gt; Alessandro Baretta wrote:
&gt; 
&gt;&gt; Probably, all that ocaml lacks to properly handle namespacing is a 
&gt;&gt; -open directive, telling the compiler to imply a "open Xxxx" at the 
&gt;&gt; beginning of all .ml and .mli files on the command line. Given this 
&gt;&gt; compiler flag, the build system could take care of everything.
&gt; 

I had not thought about this... Actually, it is not a bad idea, at least, in my 
build system. Ideally, the build system would have to have a way of mangling the 
library namespace by packaging up findlib-managed libraries in a single package. 
Then, it would have to isse the desired -open directives to an ad-hoc camlp4 
syntax extension. It's a bit of a hack, but it could work. I wonder if it is 
general enough a solution to become mainstream, though.

Alex

-- 
*********************************************************************

Ing. Alessandro Baretta

Studio Baretta
http://studio.baretta.com/

Consulenza Tecnologica e Ingegneria Industriale
Technological Consulting and Industrial Engineering

tel. +39 02 370 111 55
fax. +39 02 370 111 54

</contents>

</message>

