From: Fernando Alegre <fernando@cc.gatech.edu>
To: Sven Luther <sven.luther@wanadoo.fr>
Cc: Richard Jones <rich@annexia.org>, caml-list@inria.fr
Subject: Re: [Caml-list] Modules and namespaces
Date: Fri, 19 Mar 2004 08:56:42 -0500 [thread overview]
Message-ID: <20040319135642.GA22254@gaia.cc.gatech.edu> (raw)
In-Reply-To: <20040319104514.GA21926@lambda>
On Fri, Mar 19, 2004 at 11:45:14AM +0100, Sven Luther wrote:
> On Fri, Mar 19, 2004 at 10:19:31AM +0000, Richard Jones wrote:
> > It would be quite possible for someone else to write a Dbi module
> > located in the -I +anotherdbi directory. No conflict would arise
> > unless some strange person wanted to use both types of Dbi module
> > in their program - an unlikely occurrence presumably.
>
> You can achieve this by using the -pack option when creating libraries.
> Sure it has still some problems, but it is the way to go to solve this
> problem.
>
> What is really missing is support for more than one OCAMLLIBDIR, in
> order to be able to easily separate the libraries installed by your
> package manager (/usr/lib/ocaml/3.07 for debian), by the one installed
> locally by the sysadmin (/usr/local/lib/ocaml/3.07 for debian), and the
> user specific ones (less important though, but still usefull).
It seems that you both also miss the -pre_open and -stdlib switches in
the compiler.
A pre_open switch would take care of 2 modules called Dbi without modifying
them:
(* wrapper1.ml *)
module DbiVendor1 = Dbi
====
(* wrapper2.ml *)
module DbiVendor2 = Dbi
===
ocamlc -c -I path_to_vendor1 wrapper1.ml -I path_to_vendor2 wrapper2.ml ...
===
A stdlib switch is what Sven is asking above.
Both switches, along with pack, is all we need to create our custom
packaging/namespace management systems independently of INRIA. What do you
think?
These switches would also be policy-neutral, so that nobody is _forced_ to
use GODI, debian packages or any other middleware if they do not fit their
environment, but still allow people to use external libraries without fear
of namespace clashes.
Fernando
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-03-19 13:56 UTC|newest]
Thread overview: 127+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-09 17:30 [Caml-list] Completeness of "Unix" run-time library Vasili Galchin
2004-03-09 17:55 ` Richard Jones
2004-03-09 18:11 ` Shawn Wagner
2004-03-15 19:44 ` Eric Stokes
2004-03-16 5:32 ` Vasili Galchin
2004-03-17 15:52 ` Eric Stokes
2004-03-18 0:19 ` Vasili Galchin
2004-03-18 8:56 ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Matt Gushee
2004-03-18 10:31 ` Richard Jones
2004-03-18 11:22 ` Nicolas Cannasse
2004-03-18 11:18 ` Wolfgang Müller
2004-03-18 11:55 ` Diego Olivier Fernandez Pons
2004-03-18 12:42 ` Benjamin Geer
2004-03-18 14:12 ` Xavier Leroy
2004-03-18 17:18 ` Benjamin Geer
2004-03-18 17:56 ` Alex Baretta
2004-03-18 18:33 ` Markus Mottl
2004-03-19 10:58 ` [Caml-list] Structuring the Caml community Christophe TROESTLER
2004-03-19 18:29 ` Yamagata Yoriyuki
2004-03-18 23:44 ` [Caml-list] Structuring the Caml community (Re: OCaml's Cathedral & Bazaar) Alain.Frisch
2004-03-19 8:36 ` Oliver Bandel
2004-03-19 19:03 ` Eric Stokes
2004-03-19 22:34 ` Benjamin Geer
2004-03-19 22:58 ` Matthew O'Connor
2004-03-19 23:15 ` Eric Stokes
2004-03-19 23:23 ` Karl Zilles
2004-03-20 10:10 ` ocaml.org (was: Re: [Caml-list] Structuring the Caml community (Re: OCaml's Cathedral & Bazaar)) Richard Jones
[not found] ` <Pine.LNX.4.44.0403201143290.2678-100000@lcmpc4.epfl.ch>
2004-03-20 10:47 ` Richard Jones
2004-03-18 23:41 ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Gerd Stolpmann
2004-03-19 0:47 ` Kenneth Knowles
2004-03-19 8:54 ` Richard Jones
2004-03-19 12:29 ` Gerd Stolpmann
2004-03-19 12:44 ` [Caml-list] Proposed community structure (was Re: OCaml's Cathedral & Bazaar) Benjamin Geer
2004-03-19 17:30 ` [Caml-list] " Gerd Stolpmann
2004-03-20 6:30 ` Matt Gushee
2004-03-20 6:49 ` Vasili Galchin
2004-03-20 13:19 ` Ville-Pertti Keinonen
2004-03-20 19:03 ` Vasili Galchin
2004-03-20 11:23 ` Benjamin Geer
2004-03-20 16:46 ` Gerd Stolpmann
2004-03-20 13:07 ` [Caml-list] Re: OCaml's Cathedral & Bazaar Dmitry Bely
2004-03-20 15:55 ` Gerd Stolpmann
2004-03-20 20:09 ` brogoff
2004-03-18 12:55 ` Alex Baretta
2004-03-19 8:54 ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Sven Luther
2004-03-19 9:12 ` Sven Luther
2004-03-18 13:12 ` John Carr
2004-03-18 13:56 ` Richard Jones
2004-03-18 18:41 ` Oliver Bandel
2004-03-18 20:10 ` John Carr
2004-03-18 23:20 ` Richard Jones
2004-03-19 1:30 ` Jacques Garrigue
2004-03-19 5:10 ` skaller
2004-03-19 8:41 ` Sven Luther
2004-03-19 8:58 ` Richard Jones
2004-03-19 9:13 ` Sven Luther
2004-03-19 10:03 ` Alex Baretta
2004-03-19 10:17 ` Sven Luther
2004-03-19 11:49 ` Benjamin Geer
2004-03-19 12:20 ` Gerd Stolpmann
2004-03-19 12:31 ` Sven Luther
2004-03-19 12:34 ` Issac Trotts
2004-03-21 9:13 ` skaller
2004-03-21 20:05 ` Issac Trotts
[not found] ` <1079927683.3165.73.camel@pelican.wigram>
2004-03-22 6:51 ` Issac Trotts
2004-03-23 19:48 ` skaller
2004-03-23 22:16 ` Gerd Stolpmann
2004-04-03 6:36 ` Dustin Sallings
2004-04-03 7:43 ` Kenneth Knowles
2004-04-05 7:50 ` Dustin Sallings
2004-04-06 4:20 ` Vasili Galchin
2004-04-06 7:24 ` skaller
2004-04-06 17:24 ` Benjamin Geer
2004-04-06 17:38 ` Kip Macy
2004-04-07 23:11 ` Vasili Galchin
2004-04-07 23:08 ` Vasili Galchin
2004-04-07 23:31 ` Dustin Sallings
2004-04-08 13:57 ` John Goerzen
2004-04-13 11:15 ` Keith Wansbrough
2004-04-08 13:48 ` John Goerzen
2004-04-08 14:06 ` Richard Jones
2004-04-08 14:53 ` John Goerzen
2004-04-08 19:56 ` [Caml-list] Re: OCaml's Cathedral & Bazaar Christophe TROESTLER
2004-04-08 20:47 ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Evan Martin
2004-04-08 21:20 ` Kenneth Knowles
2004-04-07 23:03 ` Vasili Galchin
2004-04-08 7:03 ` james woodyatt
2004-04-08 7:15 ` Stijn De Saeger
2004-04-08 8:25 ` skaller
2004-04-08 9:35 ` Andreas Rossberg
2004-04-08 11:05 ` Florian Hars
2004-04-08 11:31 ` Andreas Rossberg
2004-04-08 13:39 ` Jacques Garrigue
2004-04-08 12:33 ` Richard Jones
2004-03-19 12:17 ` Alex Baretta
2004-03-19 12:37 ` Sven Luther
2004-03-19 12:44 ` Issac Trotts
2004-03-18 23:31 ` Benjamin Geer
2004-03-19 1:08 ` Michael Vanier
2004-03-19 8:51 ` Sven Luther
2004-03-19 13:20 ` John Carr
2004-03-19 15:12 ` Sven Luther
2004-03-21 21:11 ` John Carr
2004-03-22 6:46 ` Sven Luther
2004-03-19 8:48 ` Sven Luther
2004-03-18 18:57 ` Shawn Wagner
2004-03-18 21:16 ` Kenneth Knowles
2004-03-18 22:32 ` Fernando Alegre
2004-03-19 0:03 ` [Caml-list] Re: OCaml's Cathedral & Bazaar Remi Vanicat
2004-03-19 8:50 ` [Caml-list] Demande clarification nomenclature ocaml* Diego Olivier Fernandez Pons
2004-03-19 9:49 ` [Caml-list] Suggestion (was: Demande clarification nomenclature ocaml*) Wolfgang Müller
2004-03-19 10:19 ` [Caml-list] Modules and namespaces Richard Jones
2004-03-19 10:42 ` Wolfgang Müller
2004-03-19 10:45 ` Sven Luther
2004-03-19 13:56 ` Fernando Alegre [this message]
2004-03-19 15:15 ` Sven Luther
2004-03-19 11:45 ` [Caml-list] Demande clarification nomenclature ocaml* Benjamin Geer
2004-03-20 6:12 ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Matt Gushee
2004-03-20 11:29 ` Benjamin Geer
2004-03-20 6:23 ` Vasili Galchin
2004-03-20 6:23 ` Vasili Galchin
2004-03-09 17:59 ` [Caml-list] Completeness of "Unix" run-time library james woodyatt
2004-03-19 10:19 ` Sven Luther
2004-03-20 6:15 ` Vasili Galchin
2004-03-20 6:40 ` Sven Luther
2004-03-20 6:45 ` Vasili Galchin
2004-03-09 18:04 ` Stefano Zacchiroli
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=20040319135642.GA22254@gaia.cc.gatech.edu \
--to=fernando@cc.gatech.edu \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
--cc=sven.luther@wanadoo.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;
as well as URLs for NNTP newsgroup(s).