From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Test release Objective Caml 3.03 Alpha
Date: Sun, 14 Oct 2001 20:27:55 +0200 [thread overview]
Message-ID: <20011014202755.E14374@verdot.inria.fr> (raw)
In-Reply-To: <20011014.200808.09637357.debian00@tiscalinet.be>; from debian00@tiscalinet.be on Sun, Oct 14, 2001 at 08:08:08PM +0200
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
next prev parent reply other threads:[~2001-10-14 18:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-12 13:00 Xavier Leroy
2001-10-12 17:39 ` Christophe TROESTLER
2001-10-12 18:55 ` Daniel de Rauglaudre
2001-10-14 18:08 ` Christophe TROESTLER
2001-10-14 18:27 ` Daniel de Rauglaudre [this message]
2001-10-14 18:14 ` Christophe TROESTLER
2001-10-12 18:14 ` Ceri Storey
2001-10-15 14:12 ` md5i
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011014202755.E14374@verdot.inria.fr \
--to=daniel.de_rauglaudre@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox