<?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/735ed9e71e88a4cf46dcfe0566d1b115"
  from="Olivier Andrieu &lt;andrieu@i...&gt;"
  author="Olivier Andrieu"
  date="2003-01-29T14:33:56"
  subject="Re: [Caml-list] AST and &quot;when&quot;"
  prev="2003/01/fb18c346f65204d6f3afadad83bd0f03"
  next="2003/01/922b2da371598713ba9e6dd461b9df4a"
  prev-in-thread="2003/01/fb18c346f65204d6f3afadad83bd0f03"
  next-in-thread="2003/01/922b2da371598713ba9e6dd461b9df4a"
  prev-thread="2003/01/d0f887ae26f1c4bf6ade216977deba32"
  next-thread="2003/01/92e294ab72bc62127ee9455ff8c411e8"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] AST and &quot;when&quot;">
<msg 
  url="2003/01/fb18c346f65204d6f3afadad83bd0f03"
  from="Mike Potanin &lt;potanin@m...&gt;"
  author="Mike Potanin"
  date="2003-01-29T11:04:06"
  subject="[Caml-list] AST and &quot;when&quot;">
<msg 
  url="2003/01/735ed9e71e88a4cf46dcfe0566d1b115"
  from="Olivier Andrieu &lt;andrieu@i...&gt;"
  author="Olivier Andrieu"
  date="2003-01-29T14:33:56"
  subject="Re: [Caml-list] AST and &quot;when&quot;">
<msg 
  url="2003/01/922b2da371598713ba9e6dd461b9df4a"
  from="Mike Potanin &lt;potanin@m...&gt;"
  author="Mike Potanin"
  date="2003-01-29T15:17:21"
  subject="Re: [Caml-list] AST and &quot;when&quot;">
<msg 
  url="2003/01/0494f07a636297e85ad88a73700c7d84"
  from="Olivier Andrieu &lt;andrieu@i...&gt;"
  author="Olivier Andrieu"
  date="2003-01-29T15:43:30"
  subject="Re: [Caml-list] AST and &quot;when&quot;">
<msg 
  url="2003/01/fa33962c45f49aeaef30c5b8c07a5fec"
  from="Mike Potanin &lt;potanin@m...&gt;"
  author="Mike Potanin"
  date="2003-01-29T16:35:48"
  subject="Re: [Caml-list] AST and &quot;when&quot;">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
 Mike Potanin [Wednesday 29 January 2003] :
 &gt; Can CamlP4 make "when" in pattern?
 &gt; 
 &gt; # &lt;:expr&lt; let p x = match x with a when a&lt;0 -&gt; 1 | b -&gt; b in p z &gt;&gt;;;
 &gt;                                    ^^^^
 &gt; While expanding quotation "expr":
 &gt; Parse error: '-&gt;' expected after [ipatt] (in [expression])

That should be :
&lt;:expr&lt; let p x = match x with [ a when a&lt;0 -&gt; 1 | b -&gt; b ] in p z &gt;&gt;

AST quotations use the revised syntax.

-- 
   Olivier
-------------------
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>

