<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/12/2ef4b3a5e13a73565bbf4f5ca49ed9a3"
  from="Kim Nguyen &lt;nguyen@b...&gt;"
  author="Kim Nguyen"
  date="2003-12-17T15:51:49"
  subject="Re: [Caml-list] Quotes in comments: (* &quot; *)"
  prev="2003/12/0dc06cbcddbce82c12e07d06022f6e58"
  next="2003/12/6dcb88a45064c773184902fea7270427"
  prev-in-thread="2003/12/0dc06cbcddbce82c12e07d06022f6e58"
  next-in-thread="2003/12/6dcb88a45064c773184902fea7270427"
  prev-thread="2003/12/9b5a7e7a9b58d998ee5a97ad099a5a28"
  next-thread="2003/12/9689938463f097fadb5c7fcc392135c8"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Quotes in comments: (* &quot; *)">
<msg 
  url="2003/12/0dc06cbcddbce82c12e07d06022f6e58"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-12-17T15:22:35"
  subject="[Caml-list] Quotes in comments: (* &quot; *)">
<msg 
  url="2003/12/2ef4b3a5e13a73565bbf4f5ca49ed9a3"
  from="Kim Nguyen &lt;nguyen@b...&gt;"
  author="Kim Nguyen"
  date="2003-12-17T15:51:49"
  subject="Re: [Caml-list] Quotes in comments: (* &quot; *)">
<msg 
  url="2003/12/6dcb88a45064c773184902fea7270427"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-12-17T17:02:34"
  subject="Re: [Caml-list] Quotes in comments: (* &quot; *)">
<msg 
  url="2003/12/051dd5d9de0b271db8eba6ff8832e844"
  from="William Lovas &lt;wlovas@s...&gt;"
  author="William Lovas"
  date="2003-12-17T23:09:58"
  subject="Re: [Caml-list] Quotes in comments: (* &quot; *)">
<msg 
  url="2003/12/138e4f5860bc4bf7463033288393b8fc"
  from="Dustin Sallings &lt;dustin@s...&gt;"
  author="Dustin Sallings"
  date="2003-12-18T03:48:14"
  subject="Re: [Caml-list] Quotes in comments: (* &quot; *)">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2003/12/022975ccda0facd55d5ed5f392e0139a"
  from="Hendrik Tews &lt;tews@t...&gt;"
  author="Hendrik Tews"
  date="2003-12-18T13:52:52"
  subject="Re: [Caml-list] Quotes in comments: (* &quot; *)">
</msg>
<msg 
  url="2003/12/c475afa6b1d6f2645b0abfa89a4ca77c"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-12-18T17:06:00"
  subject="Re: [Caml-list] Quotes in comments: (* &quot; *)">
</msg>
</msg>
</thread>

<contents>
On Wed, 17 Dec 2003 15:22:32 +0000
Richard Jones &lt;rich@annexia.org&gt; wrote:

&gt; 
&gt; Is there a deep reason why the compiler is fussed by unmatched quotes
&gt; appearing in comments, ie: (* " *) ?

This seems necessary to ensure that any piece of code can easily be commented out :

(* This is a valid comment

let print_close_comment () = print_string "*)" &lt;-- the comment does not end here.

*)

So the comment part of the  lexer needs to analyse strings as well to igonre any "*)" character sequence within a
string. And therefore, it fails when a string is unterminated.

See http://caml.inria.fr/FAQ/FAQ_EXPERT-eng.html#commentaire

IMHO, the bug should be corrected in tuareg-mode (if possible).

Cheers,

Kim.

</contents>

</message>

