[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#659002: ocaml-nox: ocaml-compiler with mysterious effects if somewhere a comment with open quotation, example (* 3" *)

Hello Hendrik,

Am Donnerstag, den 16.02.2012, 10:38 +0100 schrieb Hendrik Tews:
>    I compiled it with ocamlopt
> I don't believe that. Compiling your example with ocamlopt gives
>    >     File "brackets.ml", line 3, characters 0-2:
>    >     Error: Comment not terminated
> while you reported a different error message.

Yes and no.

Here is the original call:

ocamlopt -pp 'camlp4o pa_macro.cmo' brackets.ml

This results in 
File "brackets.ml", line 34, characters 15-559 (end at line 60,
character 0):
Quotation not terminated
File "brackets.ml", line 1, characters 0-1:
Error: Preprocessor error

If you compile it with ocamlopt brackets.ml, you got:

File "brackets.ml", line 3, characters 0-2:
Error: Comment not terminated

The problem will be the preprocessor.

In my original posting I was not able to decide between ocamlopt and
preprocessor errors.

However, first it is very strange to have a rule "quotation marks must
be balanced within comments". There is no good reason to defeat this
rule, IMHO. Second, the error message of preprocessor is
misunderstanding, because it is very hard to find the position of the

> If we could reproduce your error message, we could maybe file a
> feature request for a more informative error message. The error

That would be fine...

> message of ocamlopt is good enough, I believe.

It would be fine asking to disable this strange rule, too. :)

Thanks in advance,

Bye Andreas
Andreas Romeyke
- Abteilung Blindenschrift -
Deutsche Zentralbücherei für Blinde zu Leipzig (DZB)
Gustav-Adolf-Straße 7, 04105 Leipzig
Tel: +49 341 7113-..., Fax: +49 341 7113-125
Internet: www.dzb.de
E-Mail: andreas.romeyke@dzb.de

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: