<?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="2002/07/19d0749808ad9a6879697110271dcf77"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-19T01:02:02"
  subject="Re: [Caml-list] Pattern matching missing (or brain damage?)"
  prev="2002/07/604fa7b6902a2b44dae753400c7915df"
  next="2002/07/1555d185cf3a3a8758041c92a7f7d521"
  prev-in-thread="2002/07/604fa7b6902a2b44dae753400c7915df"
  next-in-thread="2002/07/5e416daa06a94c2263de024975bd8d01"
  prev-thread="2002/07/444e872df95c217576d95f578cc60764"
  next-thread="2002/07/315f6c499a501e6f0b02d1bddacd4ee1"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Pattern matching missing (or brain damage?)">
<msg 
  url="2002/07/c22d9fd21bcea5691f5678e925df1862"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-18T22:15:33"
  subject="[Caml-list] Pattern matching missing (or brain damage?)">
<msg 
  url="2002/07/604fa7b6902a2b44dae753400c7915df"
  from="William Lovas &lt;wlovas@s...&gt;"
  author="William Lovas"
  date="2002-07-19T00:09:04"
  subject="Re: [Caml-list] Pattern matching missing (or brain damage?)">
<msg 
  url="2002/07/19d0749808ad9a6879697110271dcf77"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-19T01:02:02"
  subject="Re: [Caml-list] Pattern matching missing (or brain damage?)">
</msg>
</msg>
<msg 
  url="2002/07/5e416daa06a94c2263de024975bd8d01"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-20T14:28:47"
  subject="Re: [Caml-list] Pattern matching missing (or brain damage?)">
<msg 
  url="2002/07/a342bcbb91ef8be2b62a7efea688671f"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-20T15:26:53"
  subject="Re: [Caml-list] Pattern matching missing (or brain damage?)">
</msg>
</msg>
</msg>
</thread>

<contents>


William Lovas wrote:
&gt; 
&gt; This is legal.  It's covered in the Chapter 6 of the manual, under
&gt; Patterns, sub-heading ``Or'' patterns:
&gt; 
&gt;     http://caml.inria.fr/ocaml/htmlman/manual014.html
&gt; 
&gt; You might be having trouble if your subpatterns don't bind exactly 
&gt; the same variables...

Many thanks to both William and Michael.

No, I was not having trouble with the bindings, since I was 
only checking the variant tag. The problem is that I'm still 
writing code at 3 in the morning. But at last I got it to 
compile, yeah! Tomorrow, debugging...

Alex

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

