From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA30200; Thu, 3 Apr 2003 12:43:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA30104 for ; Thu, 3 Apr 2003 12:43:05 +0200 (MET DST) Received: from ebene.inrialpes.fr (ebene.inrialpes.fr [194.199.18.70]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h33Ah4923548 for ; Thu, 3 Apr 2003 12:43:05 +0200 (MET DST) Received: from imap-serv.inrialpes.fr (imap-serv.inrialpes.fr [194.199.18.72]) by ebene.inrialpes.fr (8.11.6/8.11.6) with ESMTP id h33Ah3Y15772; Thu, 3 Apr 2003 12:43:03 +0200 (MEST) Received: from inrialpes.fr (adret.inrialpes.fr [194.199.23.65]) by imap-serv.inrialpes.fr (8.11.6/8.11.3/ImagV2) with ESMTP id h33Ah3F11402; Thu, 3 Apr 2003 12:43:03 +0200 (MEST) Message-ID: <3E8C1034.3090709@inrialpes.fr> Date: Thu, 03 Apr 2003 12:43:00 +0200 From: Frederic Tronel Organization: INRIA Rhone-Alpes User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20030204 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list CC: Remi Vanicat Subject: Re: [Caml-list] A question about Camlp4 References: <3E8BFE27.9040602@inrialpes.fr> <87znn7lxzo.dlv@wanadoo.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; tronel:01 inrialpes:01 caml-list:01 camlp:01 expr:01 remi:01 vanicat:01 match:02 wrote:03 variable:03 argument:03 let:04 somewhere:04 documented:07 source:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Remi Vanicat wrote: > > there is an "hidden" loc "argument" to expr quotation, and this loc > variable is defined in the action. > > let optionToAst loc o = > match o with > | None -> <:expr> > | Some x -> <:expr> > > then you could call "optionToAst loc a" and it will work... Thank you, it does work. Is it documented somewhere ? (I know that "loc" is used in the source location). Best regards, Frederic. ------------------- 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