Version française
Home     About     Download     Resources     Contact us    
Browse thread
Is it a bug (pa_macro)?
[ 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@i...>
Subject: Re: [Caml-list] Is it a bug (pa_macro)?
Excerpts from Matthieu Dubuget's message of Mon Oct 01 12:10:36 +0200 2007:
> $ ocamlc -version
> 3.10.0
> 
> $ cat test.ml
> if true then
>   print_int (  (lxor) 1 3)
> 
> $ ocamldep -pp 'camlp4o pa_macro.cmo' test.ml
> File "test.ml", line 2, characters 16-20:
> Parse error: ")" or [expr] expected after "(" (in [expr])
> Preprocessing error on file test.ml
> 

If I well remember it was a bug in camlp4 about treating functions like lxor. It's now fixed in cvs.

The workaround can be to use 1 lxor 3 instead.

HTH,
-- 
Nicolas Pouillard aka Ertai