Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Error during partial linking
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] Error during partial linking

> > names is really essential to the way the OCaml compilers work.  I know
> > it's sometimes an annoyance (all cool names are already taken by the
> > standard lib :-), but you're really going to run into trouble with
> > name conflicts.
>That is what -pack is for, isn't it ?

Sort of, but Xavier's point is that during compiling of the submodules of 
the packed final product, you'll have a list.* in your project, and that's 
bad because it will screw up with the standard library one.  However, this 
will not happen if the standard library is packed, because then there's no 
list.* sitting around to confuse the compiler.

This is the real reason to pack the library, because no only does it 
pollute the namespace (rude), but it also simply doesn't allow you to have 
modules named the same even if you don't use the standard ones if I 
understand Xavier's warning correctly (which is more than rude).

Chris

-------------------
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