<?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/01/7e9a26db9c124348c333e11a6b9de462"
  from="Daniel de Rauglaudre &lt;daniel.de_rauglaudre@i...&gt;"
  author="Daniel de Rauglaudre"
  date="2003-01-09T11:00:39"
  subject="Re: [Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations."
  prev="2003/01/127c0dc2af328c6b22ad0093c362749c"
  next="2003/01/55e0693ccdecf869674f92896e045239"
  prev-in-thread="2003/01/127c0dc2af328c6b22ad0093c362749c"
  prev-thread="2003/01/ef04a27385c591a8234c591df26a7c87"
  next-thread="2003/01/37bde005f875aa75e55ca6ee21ec7ede"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations.">
<msg 
  url="2003/01/127c0dc2af328c6b22ad0093c362749c"
  from="Maas-Maarten Zeeman &lt;maas@w...&gt;"
  author="Maas-Maarten Zeeman"
  date="2003-01-09T10:53:13"
  subject="[Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations.">
<msg 
  url="2003/01/7e9a26db9c124348c333e11a6b9de462"
  from="Daniel de Rauglaudre &lt;daniel.de_rauglaudre@i...&gt;"
  author="Daniel de Rauglaudre"
  date="2003-01-09T11:00:39"
  subject="Re: [Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations.">
</msg>
</msg>
</thread>

<contents>
Hi,

On Thu, Jan 09, 2003 at 12:18:19PM +0100, Maas-Maarten Zeeman wrote:

&gt;    EXTEND
&gt;      expr: LEVEL "expr1"
&gt;        [ [ "forever"; body=expr -&gt;
&gt;               &lt;:expr&lt; while true do { $body$ } &gt;&gt; ] ];
&gt;    END;;

Not "true", but "True": in Revised syntax, which is used in quotations
of syntax trees, the constructors "True" and "False" must start with
an uppercase letter.

If you write it with a lowercase letter, the generated syntax tree
will represent the *variable* (not the *constructor*) named "true",
which does not exist in OCaml.

-- 
Daniel de RAUGLAUDRE
http://cristal.inria.fr/~ddr/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

