Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 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