English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] camlimages vs. labltk
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-03-30 (10:06)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: [Caml-list] camlimages vs. labltk
On Friday, March 28, 2003, at 04:00 PM, Sven Luther wrote:

> Does this not sound as a ugly hack ?

Not to me...

> Would it not be easier to have something akin to -pack, but without its
> technical problems, and have each library pack its module into a
> namespace propper to this library ?

How do you make sure that two different libraries never use the same
namespace ?  And if I need to use two versions of the same library
in my program, how do you make sure that two versions of the same
library never use the same namespace ?

> If all library did this by default, at library build time, then there
> would be no need to rename the imports, since those imports would
> already have the modified (that is Library.Module) names ?

You can't avoid renaming of imports unless you have a centralized
allocation of namespaces, and _that_ sounds like an ugly hack to me.

-- Damien

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