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 TAA23691; Sun, 22 Feb 2004 19:58:03 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA23559 for ; Sun, 22 Feb 2004 19:58:02 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from vsmtp3.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1MIw0ae006772 for ; Sun, 22 Feb 2004 19:58:01 +0100 Received: from dalamar.takhisis.org (80.117.63.46) by vsmtp3.tin.it (7.0.019) id 402CD18F001BDC1A for caml-list@inria.fr; Sun, 22 Feb 2004 19:58:00 +0100 Received: from fistandantilus.takhisis.org (fistandantilus.takhisis.org [192.168.1.113]) by dalamar.takhisis.org (Postfix) with ESMTP id 13526B79C for ; Sun, 22 Feb 2004 19:58:00 +0100 (CET) Received: by fistandantilus.takhisis.org (Postfix, from userid 3148) id A87E6274138; Sun, 22 Feb 2004 19:57:59 +0100 (CET) Date: Sun, 22 Feb 2004 19:57:59 +0100 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: [Caml-list] camlp4 'loc' variable Message-ID: <20040222185759.GA22449@fistandantilus.takhisis.org> Mail-Followup-To: caml-list@inria.fr References: <30597310@newdasher.Dartmouth.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30597310@newdasher.Dartmouth.EDU> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bononia:01 caml-list:01 camlp:01 2004:99 expr:01 camlp:01 bononia:01 invoke:01 bologna:03 wrote:03 zacchiroli:03 zacchiroli:03 unibo:03 variable:03 variable:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sun, Feb 22, 2004 at 01:06:47PM -0500, J. Garrett Morris wrote: > which are used both in antiquotations and in let statements > surrounding expr quotations ... when do I need to take 'loc' as a > parameter? The camlp4 manual states that the loc variable is bound in the "action" part of a "level-rules" (i.e. the right hand side of an -> arrow in a grammar production). Therefore I guess you should pass loc as a parameter if you invoke functions from those RHSs which are not defined inside a RHS. Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!- ------------------- 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