Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
camlp4 3.10 and ints
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-13 (12:24)
From: Jeremy Yallop <jeremy.yallop@e...>
Subject: Re: [Caml-list] camlp4 3.10 and ints
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


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.