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 DAA03167; Tue, 24 Aug 2004 03:54:46 +0200 (MET DST) 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 DAA04473 for ; Tue, 24 Aug 2004 03:54:45 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i7O1sgRM026729 for ; Tue, 24 Aug 2004 03:54:44 +0200 Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2-20030924/3.7W) with ESMTP id KAA18876; Tue, 24 Aug 2004 10:54:33 +0900 (JST) Date: Tue, 24 Aug 2004 10:54:32 +0900 (JST) Message-Id: <20040824.105432.78379156.garrigue@kurims.kyoto-u.ac.jp> To: briand@aracnet.com Cc: jrouquiethearchiveshouldhaveafewantispamtricks@ens-lyon.fr, caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Re : [path directives] From: Jacques GARRIGUE In-Reply-To: <16682.40154.269687.344133@soggy.deldotd.com> References: <16682.21287.26129.98212@soggy.deldotd.com> <1093293415.412a556748ac7@mouette.ens-lyon.fr> <16682.40154.269687.344133@soggy.deldotd.com> X-Mailer: Mew version 4.0.64 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 412A9FE2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 jacques:01 const:01 const:01 jacques:01 cmo:01 cmo:01 caml:01 command:98 garrigue:01 garrigue:01 identifier:03 cma:03 explicitly:03 mechanisms:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: briand@aracnet.com > Why doesn't the load fail or give some indication of a problem ? > > Why doesn't caml know to look in the same directory which const.cmo > came from ? > > I think I'll take a look through the sources and try and understand > why this isn't more user friendly. The basic reason is that there are two files to read: const.cmo and const.cmi, and they are loaded by two independent mechanisms. const.cmo must be loaded explicitly by a #load command, but const.cmi is searched automatically in the path when a Const.xxx identifier is used. The independence of the two mechanisms may be confusing, but you may understand it better if you think of loading a .cma file: in that case, you really don't know where the corresponding .cmi should be. Jacques Garrigue ------------------- 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