<?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/c23ac1fb563ef0f0713608ff7539987e"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-14T19:09:48"
  subject="Re: [Caml-list] A nastier example"
  prev="2005/05/26824eb019503a51e04ca1d7a8880e02"
  next="2005/05/87d7750fe457b70de592627e341c5df7"
  prev-in-thread="2005/05/3bc04a2b6140d6da20788c3741d9b2cd"
  next-in-thread="2005/05/1ae5760e693924595b8116222f632c58"
  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 Saturday 14 May 2005 15:51, Julien Verlaguet wrote:
&gt; Is this the behaviour we want ?

Ideally, no.

&gt; Can two values of different types be equal ?

In theory, no.

&gt; I agree that this wouldn't be a problem if it would only work in a
&gt; toplevel ...

Does code ever work differently in the top-level than when compiled (with 
ocamlc)? Should it?

&gt; But it compiles in structures as well !! 

I think everyone would agree that there are caveats here but this is a 
question of trade-offs. So the question should be "how can we improve upon 
the current implementation?". To which the answer, for me at least, is "I 
can't".

There are many pitfalls associated with equality in OCaml but the existence of 
polymorphic comparisons is easily justified by their usefulness, IMHO.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists

</contents>

</message>

