Browse thread
[Caml-list] camlp4 'loc' variable
- J.Garrett.Morris@D...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-02-22 (18:06) |
From: | J.Garrett.Morris@D... |
Subject: | [Caml-list] camlp4 'loc' variable |
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 = List.fold_right (fun x l -> <:expr<[$x$ :: $l$]>>) l <:expr<[]>> 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