From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA11674; Tue, 25 Nov 2003 10:21:49 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA10892 for ; Tue, 25 Nov 2003 10:21:48 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAP9Lk101739 for ; Tue, 25 Nov 2003 10:21:46 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AOZOE-00012G-00 for ; Tue, 25 Nov 2003 09:21:46 +0000 Date: Tue, 25 Nov 2003 09:21:46 +0000 To: Caml Users Mailing List Subject: Re: [Caml-list] Ocaml and Samba function name collisions Message-ID: <20031125092145.GA3957@redhat.com> References: <3FC174F5.13617AC8@orcaware.com> <20031124095952.GE25688@redhat.com> <3FC2A2DC.F73593F3@orcaware.com> <20031125073825.GA781@fistandantilus.takhisis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031125073825.GA781@fistandantilus.takhisis.org> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 blair:01 zajac:01 prepend:01 ocaml's:01 graphviz:01 struct:01 graphviz:01 freshmeat:01 autoconf:01 automake:01 compiles:01 rpms:01 ltd:98 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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