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 UAA25954; Sun, 14 Oct 2001 20:28:02 +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 UAA25959 for ; Sun, 14 Oct 2001 20:28:01 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f9EIS0j03648 for ; Sun, 14 Oct 2001 20:28:00 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id UAA28105 for caml-list@inria.fr; Sun, 14 Oct 2001 20:27:55 +0200 Date: Sun, 14 Oct 2001 20:27:55 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] Test release Objective Caml 3.03 Alpha Message-ID: <20011014202755.E14374@verdot.inria.fr> References: <20011012150027.A16644@pauillac.inria.fr> <20011012.193954.41799135.debian00@tiscalinet.be> <20011012205545.J32576@verdot.inria.fr> <20011014.200808.09637357.debian00@tiscalinet.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011014.200808.09637357.debian00@tiscalinet.be>; from debian00@tiscalinet.be on Sun, Oct 14, 2001 at 08:08:08PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Sun, Oct 14, 2001 at 08:08:08PM +0200, Christophe TROESTLER wrote: > However the script mode i.e., ocaml file.ml, fails even with file.ml > being as simple as > ---------------------------------------- > #load "camlp4o.cma" > > let f = parser > | [< _ >] -> 0 > ---------------------------------------- > What is the problem ? The problem is that the "#use" toplevel directive first parses the file and, *afterwards* applies what is inside (directives, typing and execution). The "#load" directive is then applied too late. You must first type your #load "camlp4o.cma" then you can #use the files you want. Another solution is to create a file named ".ocamlinit" in your current directory (*current*, not *home*) containing #load "camlp4r.cma";; -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr