From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA15299 for caml-red; Thu, 29 Jun 2000 19:11:50 +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 LAA13427 for ; Thu, 29 Jun 2000 11:19:19 +0200 (MET DST) Received: from jaune.inria.fr (jaune.inria.fr [128.93.11.80]) by concorde.inria.fr (8.10.0/8.10.0) with ESMTP id e5T9JI509365 for ; Thu, 29 Jun 2000 11:19:18 +0200 (MET DST) Received: (from ddr@localhost) by jaune.inria.fr (8.8.7/8.8.7) id LAA30972 for caml-list@inria.fr; Thu, 29 Jun 2000 11:19:18 +0200 Date: Thu, 29 Jun 2000 11:19:18 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: convenient features Message-ID: <20000629111918.K28841@jaune.inria.fr> References: <3959C916.D1A3BDFD@enseeiht.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3959C916.D1A3BDFD@enseeiht.fr>; from David.Chemouil@enseeiht.fr on Wed, Jun 28, 2000 at 11:44:54AM +0200 Sender: weis@pauillac.inria.fr Hello, On Wed, Jun 28, 2000 at 11:44:54AM +0200, David Chemouil wrote: > 1. One thing that really bothers me is the obligation to put object > files in the good order, when linking them. As it is possible to > generate the dependency graph (ocamldot does it), wouldn't it be > possible for the linker to "flatten" it, in order for it to find alone > the good order? I personnally consider that it would be a good idea, but there is a little problem. Let's consider: a.ml depending on c.ml (a.ml contains e.g. open C) b.ml independant c.ml independant Let's suppose that you write: ocamlc a.cmo b.cmo c.cmo Do Ocaml has to do: ocamlc c.cmo a.cmo b.cmo ocamlc b.cmo c.cmo a.cmo The first solution respects the initial relative order "a.cmo b.cmo" but not "b.cmo c.cmo". It is the contrary in the second solution. If Ocaml chooses for you, it can be a problem if you want to make side effects in some order while executing these modules. Well, it could be an option of Ocaml... I have been inspired by this question by my genealogy software GeneWeb when I have to sort children by birth dates when not all of them have some. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/