caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeremy Yallop <jeremy.yallop@ed.ac.uk>
To: caml-list@inria.fr
Subject: Re: [Caml-list] camlp4 3.10 and ints
Date: Wed, 13 Jun 2007 13:17:06 +0100	[thread overview]
Message-ID: <466FE042.10000@ed.ac.uk> (raw)
In-Reply-To: <20070613114043.GA14594@furbychan.cocan.org>

Richard Jones wrote:
> $int:...$ expects a string instead of an int.  I can live with this,
> but it seems a bit strange, and unless I'm mistaken is different from
> what camlp4 <= 3.09 did.

The old camlp4 did this as well.  The new one has an extra feature, 
though: there's an antiquotation

    $`int:...$

which expects an int.

> Secondly, I get the error 'Failure: "Integer literal exceeds the range
> of representable integers of type int"' if I try to pass a string
> containing any int32 or int64 literal, eg. $int:"0x3ffL"$, even ones
> which obviously do not exceed the range of representable integers.

For int32 and int64 there are antiquotations $int32:...$, $`int3:...$, etc.

Jeremy.


  reply	other threads:[~2007-06-13 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-13 11:40 Richard Jones
2007-06-13 12:17 ` Jeremy Yallop [this message]
2007-06-13 12:31 ` [Caml-list] " Nicolas Pouillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=466FE042.10000@ed.ac.uk \
    --to=jeremy.yallop@ed.ac.uk \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).