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
Using camlp4 in extensions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Using camlp4 in extensions
On Mon, Dec 15, 2008 at 09:04:34AM -0500, Jacques Carette wrote:
> Question: is there a way to use a camlp4 extension *inside* the 
> definition of another?
> AFAIK, extensions are not ordered, so trying to use camlp4 to deal with 
> IFDEF in the source of a syntax extension (like pa_monad) to switch 
> between 3.10 and 3.11 [to deal with the new private and lazy features] 
> does not seem possible.  Or have I missed something?

camlp4 extensions should be composable (as long as they don't actually
conflict with each other).  Just list several *.cmo files on the
camlp4 command line.  What happened when you tried it?


Richard Jones
Red Hat