Excerpts from Loup Vaillant's message of Tue May 06 18:10:13 +0200 2008: > 2008/5/6 Nicolas Pouillard : > > Excerpts from Loup Vaillant's message of Tue May 06 11:57:41 +0200 2008: > > > > > > I would like to know if there is any equivalent > > > of Pcaml.input_file in Ocaml 3.10's Camlp4. > > > I tried to search the wiki, but with no luck so far. > > > [...] > > > > If I clearly remember this ugly global variable has been removed. > > OK, I got it, thank you for the fast response. > > Now, I can have the name of the preprocessed file with _loc. > > But How can I include a file in another? More generally, do we have a > substitute for it? Have a look at the Camlp4MacroParser syntax extension it provides an INCLUDE directive. -- Nicolas Pouillard aka Ertai