Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] camlp4 in script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-04 (20:01)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] camlp4 in script
On Tue, Nov 04, 2003 at 09:59:10AM -0500, Lars Nilsson wrote:
> Just out of curiousity, wouldn't creating a new toplevel using
> something like
>   ocamlmktop -I +camlp4 -custom -o ocamlp4rsh camlp4r.cma
> and using
>   #!/somedir/ocamlp4rsh
> be a nice solution for this particular problem? No need for the two
> additional lines in this case.
> I'm sort of wondering why no-one has suggested it before me (could be
> related to me not knowing what I'm saying quite possibly).

I think no one suggested it because ocamlmktop creates a toplevel 
that doesn't automatically include the +camlp4 directory.  
The -I +camlp4 directive passed to ocamlmktop is only used to
find the .cmo and .cma files while making the new toplevel.

Issac Trotts

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: