* Is it a bug (pa_macro)?
@ 2007-10-01 10:10 Matthieu Dubuget
2007-10-01 21:54 ` [Caml-list] " Nicolas Pouillard
0 siblings, 1 reply; 2+ messages in thread
From: Matthieu Dubuget @ 2007-10-01 10:10 UTC (permalink / raw)
To: caml-list
$ 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
Thanks
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Is it a bug (pa_macro)?
2007-10-01 10:10 Is it a bug (pa_macro)? Matthieu Dubuget
@ 2007-10-01 21:54 ` Nicolas Pouillard
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pouillard @ 2007-10-01 21:54 UTC (permalink / raw)
To: Matthieu Dubuget; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-01 21:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-01 10:10 Is it a bug (pa_macro)? Matthieu Dubuget
2007-10-01 21:54 ` [Caml-list] " Nicolas Pouillard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox