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 TAA21517; Sun, 22 Feb 2004 19:06:56 +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 TAA21495 for ; Sun, 22 Feb 2004 19:06:55 +0100 (MET) Received: from mailhub3.dartmouth.edu (mailhub3.dartmouth.edu [129.170.16.106]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1MI6sae000628 for ; Sun, 22 Feb 2004 19:06:54 +0100 Received: from newdasher.Dartmouth.EDU (newdasher.dartmouth.edu [129.170.208.30]) by mailhub3.dartmouth.edu (8.12.10+DND/8.12.10) with ESMTP id i1MHlZQU025205 for ; Sun, 22 Feb 2004 13:06:47 -0500 Message-id: <30597310@newdasher.Dartmouth.EDU> Date: 22 Feb 2004 13:06:47 EST From: J.Garrett.Morris@Dartmouth.EDU (J. Garrett Morris) Reply-To: J.Garrett.Morris@Dartmouth.EDU (gXm) Subject: [Caml-list] camlp4 'loc' variable To: caml-list@inria.fr X-Mailer: BlitzMail=?ISO-8859-1?Q?=AE?= version 2.6.3b21/blitzserv 3.10b13 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-MailScanner: No virus detected by mailhub3.Dartmouth.EDU 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; camlp:01 camlp:01 helper:01 mlast:01 expr:01 mlast:01 expr:01 gary:99 routines:02 unbound:02 variable:03 variable:03 quotations:03 quotations:03 let:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I'm currently writing a set of camlp4 quotations, and I'm running = into the "Unbound value 'loc'" error that's been discussed on this = list before. I'm curious about exactly when the loc variable needs = to be present, though. I've got a fair number of helper routines = like: let processList (l:MLast.expr list):MLast.expr =3D List.fold_right (fun x l -> <:expr<[$x$ :: $l$]>>) l = <:expr<[]>>=20 which are used both in antiquotations and in let statements = surrounding expr quotations ... when do I need to take 'loc' as a = parameter? Thanks. Gary ------------------- 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