From: David Rajchenbach-Teller <David.Teller@ens-lyon.org>
To: OCaml <caml-list@inria.fr>
Subject: Behavior of camlp4o when used with -pp?
Date: Tue, 10 Feb 2009 21:20:48 +0100 [thread overview]
Message-ID: <1234297248.6457.65.camel@Blefuscu> (raw)
Dear list,
I'm currently faced with a weird behaviour (bug?) of camlp4.
Assuming the existence of a file foo.ml, possibly empty.
camlp4o -no_comments foo.ml
understands option "-no_comments" correctly and pretty-prints the
contents of foo.ml, minus comments
However, when using camlp4o as a preprocessor,
ocamlc -i -pp "camlp4o -no_comments" foo.ml
-no_comments: unknown or misused option
Use option -help for usage
File "foo.ml", line 1, characters 0-1:
Error: Preprocessor error
Is this normal? Is there a workaround for this?
Thanks,
David
--
David Teller-Rajchenbach
Security of Distributed Systems
http://www.univ-orleans.fr/lifo/Members/David.Teller
« Ce matin Un crétin A tué un chercheur. » (air connu)
Latest News of French Research: System being liquidated. Researchers angry.
next reply other threads:[~2009-02-10 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 20:20 David Rajchenbach-Teller [this message]
2009-02-10 21:10 ` [Caml-list] " Jake Donham
2009-02-10 22:05 ` David Rajchenbach-Teller
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=1234297248.6457.65.camel@Blefuscu \
--to=david.teller@ens-lyon.org \
--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