From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 468AEBB81 for ; Thu, 1 Dec 2005 18:05:17 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jB1H5G8w013338 for ; Thu, 1 Dec 2005 18:05:17 +0100 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 SAA06922 for ; Thu, 1 Dec 2005 18:05:16 +0100 (MET) Received: from net.univ-savoie.fr (net.univ-savoie.fr [193.48.120.75]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jB1H5Fwt004232 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 1 Dec 2005 18:05:16 +0100 Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by net.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id jB1H5Ba8002366 for ; Thu, 1 Dec 2005 18:05:11 +0100 Received: from [193.48.123.45] (d45.lama.univ-savoie.fr [193.48.123.45]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id jB1H56Jd007719 ; Thu, 1 Dec 2005 18:05:07 +0100 Message-ID: <438F2D48.7030105@univ-savoie.fr> Date: Thu, 01 Dec 2005 18:05:12 +0100 From: Christophe Raffalli User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: fr, en MIME-Version: 1.0 To: caml-list Subject: Re: [Caml-list] Best way to choose an implementation of a lib ? References: <438D6B4D.1070004@univ-savoie.fr> <20051130.211930.102965761.garrigue@math.nagoya-u.ac.jp> <20051130194851.GB14312@localhost> In-Reply-To: <20051130194851.GB14312@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Miltered: at nez-perce with ID 438F2D4C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 438F2D4B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; christophe:01 raffalli:01 christophe:01 raffalli:01 univ-savoie:01 caml-list:01 lib:01 univ-savoie:01 mli:01 cmxa:01 symbolic:01 impl:01 impl:01 symbolic:01 usr:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Eric Cooper a écrit : > On Wed, Nov 30, 2005 at 09:19:30PM +0900, Jacques Garrigue wrote: > >>From: Christophe Raffalli >> >>>Let say I want two distribute two(or more) implementations of a library >>>with the .mli for all ... >>> >>>Is there a way to choose the implementation at link time ? >>>[...] >> >>Directories seem a possible solution. >>[...] >>An alternative to distinct directories is to create libraries (.cma/.cmxa). > > > And yet another is to use symbolic links, for example > a.ml -> a_optimized_impl.ml > or > a.ml -> a_reference_impl.ml > This is not reasonable for a library. You can not ask the user to change symbolic link in /usr/lib/ocaml ... > (Note that when using "make", you have to be careful about stale > object files after switching the symlink. It's a good idea to do a > "make clean" at the same time.) > -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature. The public key is stored on www.keyserver.net ---------------------------------------------