<?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="2005/05/3bc04a2b6140d6da20788c3741d9b2cd"
  from="Eric Cooper &lt;ecc@c...&gt;"
  author="Eric Cooper"
  date="2005-05-14T16:09:57"
  subject="Re: [Caml-list] A nastier example"
  prev="2005/05/1f822b6b7ed3c39e7476e3563d42e797"
  next="2005/05/26824eb019503a51e04ca1d7a8880e02"
  prev-in-thread="2005/05/364d49a5518b65697cd274b31137e7f7"
  next-in-thread="2005/05/c23ac1fb563ef0f0713608ff7539987e"
  prev-thread="2005/05/de924d02da1bfa569ce4712abd1edf55"
  next-thread="2005/05/26824eb019503a51e04ca1d7a8880e02"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="A nastier example">
<msg 
  url="2005/05/ae89a3abd5fc5427758f84f82fc041f2"
  from="Julien Verlaguet &lt;Julien.Verlaguet@p...&gt;"
  author="Julien Verlaguet"
  date="2005-05-14T14:51:17"
  subject="A nastier example">
<msg 
  url="2005/05/91f9b790a67a737ae62058f8755578a4"
  from="Marcin &apos;Qrczak&apos; Kowalczyk &lt;qrczak@k...&gt;"
  author="Marcin &apos;Qrczak&apos; Kowalczyk"
  date="2005-05-14T15:37:40"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/1f822b6b7ed3c39e7476e3563d42e797"
  from="Julien Verlaguet &lt;Julien.Verlaguet@p...&gt;"
  author="Julien Verlaguet"
  date="2005-05-14T15:47:18"
  subject="Re: [Caml-list] A nastier example">
</msg>
<msg 
  url="2005/05/364d49a5518b65697cd274b31137e7f7"
  from="Vincenzo Ciancia &lt;vincenzo_yahoo_addressguard-gmane@y...&gt;"
  author="Vincenzo Ciancia"
  date="2005-05-15T15:00:52"
  subject="Re: A nastier example">
</msg>
</msg>
<msg 
  url="2005/05/3bc04a2b6140d6da20788c3741d9b2cd"
  from="Eric Cooper &lt;ecc@c...&gt;"
  author="Eric Cooper"
  date="2005-05-14T16:09:57"
  subject="Re: [Caml-list] A nastier example">
</msg>
<msg 
  url="2005/05/c23ac1fb563ef0f0713608ff7539987e"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-14T19:09:48"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/1ae5760e693924595b8116222f632c58"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2005-05-15T15:50:34"
  subject="Re: [Caml-list] A nastier example">
</msg>
<msg 
  url="2005/05/eea4399d8267823e7128927642e53047"
  from="Mark Shinwell &lt;Mark.Shinwell@c...&gt;"
  author="Mark Shinwell"
  date="2005-05-15T17:24:49"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/762915bddf4ffeafe2765647734a4809"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-16T00:15:58"
  subject="Re: [Caml-list] A nastier example">
<msg 
  url="2005/05/877310c6b6bc56c7fae1209b293da92f"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2005-05-16T11:40:34"
  subject="Re: [Caml-list] A nastier example">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Sat, May 14, 2005 at 04:51:07PM +0200, Julien Verlaguet wrote:
&gt; Here is a nastier case than the one in the previous msg.
&gt; 
&gt; exception E of int;;
&gt; 
&gt; let x=E(1);;
&gt; 
&gt; exception E of bool;;
&gt; 
&gt; x=E(true);;
&gt; 
&gt; answer : true
&gt; 
&gt; I received many mails (in private), explaining to me how the equality 
&gt; works in OCaml, how exceptions are represented etc ...
&gt; Which is not what I was asking, I will try to reformulate :
&gt; 
&gt; Is this the behaviour we want ?
&gt; 
&gt; Can two values of different types be equal ?

But these aren't different types -- they're both type "exn".
For example:
    let test e = (e = Exit)
    val test : exn -&gt; bool = &lt;fun&gt;
So test can be applied to any exception, no matter what kind of
structure it has.

-- 
Eric Cooper             e c c @ c m u . e d u

</contents>

</message>

