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 UAA26343; Sun, 29 Sep 2002 20:29:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA26543 for caml-list@pauillac.inria.fr; Sun, 29 Sep 2002 20:29:05 +0200 (MET DST) 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 HAA16545 for ; Sun, 29 Sep 2002 07:24:36 +0200 (MET DST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8T5OV509849 for ; Sun, 29 Sep 2002 07:24:35 +0200 (MET DST) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17vWYw-0008U0-00 for ; Sun, 29 Sep 2002 07:24:14 +0200 To: caml-list@inria.fr X-Injected-Via-Gmane: http://gmane.org/ Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17vWYw-0008Tr-00 for ; Sun, 29 Sep 2002 07:24:14 +0200 Path: not-for-mail From: "=?iso-8859-1?q?Micha=EBl_Gr=FCnewald?=" Subject: [Caml-list] Re: We should start using -pack by default when building libraries, (was : Re: Meta module in findlib and the need for namespaces) Date: 29 Sep 2002 07:27:05 +0200 Organization: (none) Message-ID: <87it0pqsba.fsf@ketanu.dyndns.org> References: <3D87406D.9010406@baretta.com> <20020922212920.GG914@ice.gerd-stolpmann.de> <20020923084301.GA1272@iliana> <20020923163619.A16997@pauillac.inria.fr> <20020924063041.GA1436@iliana> <87d6r2llnw.fsf@ketanu.dyndns.org> <20020925093229.GA1424@iliana> <87k7l9yicz.fsf@ketanu.dyndns.org> <20020926110058.GA16817@dpt-info.u-strasbg.fr> NNTP-Posting-Host: amontpellier-203-1-1-181.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1033277054 31917 80.13.70.181 (29 Sep 2002 05:24:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Sep 2002 05:24:14 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Sven writes: [...] > > But what if you compile only one module ? If you compile a.ml ocamlc -c > > -o unnom.cmo a.cmo will act like ocamlc -pack -o unnom.cmo -c a.cmo and > > i will have to access the A module through Unnom.A which is very > > disturbing, isn't it ? > > Well, no, it would be used by default only when building libraries (.cma > and such). This makes more sense when limiting this behaviour to libraries [...] > > I cannot understand why you wish a so strange behaviour, and > > Does it makes more sense if limited to libraries ? Yes it does ! [...] > Like i said before, because the enabling by default is only for building > .cmas. Sorry about the confussion. Confussion has been wiped out :) [...] > > This sounds hairy (i mean: i am frightened !) ! > > Yes, sure, better to have it all work for all plateforms ... > > > How can you write Makefile that can compile an application on any > > installation, when the change you eask about is applied (if i understand > > it). > > With conditional rules depending on the result of ocamlc -pack-default > or something such ? This will lead users to write more advanced makefile stuff, they will not necessarily bother. > > you determine if the default behaviour is to pack or not to > > you set a variable OCAMLC according to what you expect the compiler to do. > > you use the OCAMLC variable in the place of `ocamlc' program > > Or like that also, but the definition of OCAMLC could be conditional. > And anyway, it would be ocamlmklib which we redefine. Oc. [...] > Ok, i hope this mail will lift the misunderstanding now. It did ! > > Friendly, Bye ! -- Michaël Grünewald - RSA PGP Key ID: 0x20D90C12 ------------------- 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