Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocaml and Samba function name collisions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Ocaml and Samba function name collisions
On Tue, Nov 25, 2003 at 08:38:25AM +0100, Stefano Zacchiroli wrote:
> On Mon, Nov 24, 2003 at 04:31:24PM -0800, Blair Zajac wrote:
> > The synopsis of this message is to ask that the Ocaml source
> > code prepend a Ocaml specific string, "ml_", "caml_" or "ocaml_"
> > to all function names in Ocaml's source code to avoid name
> > collisions with other packages.  My case is made below :)
> 
> I will definitely sign this petition. I had a similar problem while
> trying to write an ocaml binding to the graphviz library. Both the
> libraries defined, IIRC, a color struct used in graphviz for node colors
> and in ocaml by the GC :-(

Ditto. Try linking caml with libperl some time. I did, and it's really
not pleasant. BOTH packages make claims on the whole namespace, and
there are conflicts.

Look at how tcl and tk use namespace some time for an example of how
to get this right.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles,
RPMs, pkgs etc. Linux, BSD, Solaris. http://www.annexia.org/freeware/makeplus/

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