On Sat, Oct 17, 2009 at 10:18 PM, Sashan Govender <
sashang@...> wrote:
> let pfx = false in
> <:expr<foo $bool:pfx$>>
Try `bool instead. This is a bit confusing because there are both int
and `int antiquotations; the int one takes a string and embeds it as
an int AST node (the AST node takes a string representation of the
int, I think in order to support antiquotations inside it), while the
`int one takes an int, converts it to a string, and embeds it as an
int AST node.
You can see some other antiquotations in
camlp4/Camlp4Parsers/Camlp4QuotationCommon.ml.
Jake