Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4: Curried constructor error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Re: camlp4: Curried constructor error
On 4/2/07, Joel Reymont <joelr1@gmail.com> wrote:
> Foot in mouth. camlp4 in this case is doing compile-time expansion
> and cannot take runtime variables. Oh, well...

camlp4 always do compile-time expansion but you can insert code using
antiquotations.

<:expr< Some >> x      ==> WRONG
<:expr< Some $x$ >> ==> RIGHT

-- 
Nicolas Pouillard