<?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="2006/02/023f7ed0bf61833401b5b03efebb8ad0"
  from="EEK Cooper &lt;s0567141@s...&gt;"
  author="EEK Cooper"
  date="2006-02-24T11:22:13"
  subject="Map.fold behavior changed"
  prev="2006/02/fa8024e942755bfff622daa504e0e477"
  next="2006/02/579a51a1051b15f49ce25ed80aa0704c"
  next-in-thread="2006/03/e45f07a7921a3913d9b004ba7c5c7a6f"
  prev-thread="2006/02/03685ae260718d8812c6a6f0bb6dd87d"
  next-thread="2006/02/579a51a1051b15f49ce25ed80aa0704c"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Map.fold behavior changed">
<msg 
  url="2006/02/023f7ed0bf61833401b5b03efebb8ad0"
  from="EEK Cooper &lt;s0567141@s...&gt;"
  author="EEK Cooper"
  date="2006-02-24T11:22:13"
  subject="Map.fold behavior changed">
<msg 
  url="2006/03/e45f07a7921a3913d9b004ba7c5c7a6f"
  from="Nathaniel Gray &lt;n8gray@g...&gt;"
  author="Nathaniel Gray"
  date="2006-03-01T05:20:22"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/18de835f63ea35c07d2aafafc0232ef5"
  from="Nicolas Pouillard &lt;nicolas.pouillard@i...&gt;"
  author="Nicolas Pouillard"
  date="2006-03-01T09:33:05"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
<msg 
  url="2006/02/08aa1f53f8a7c6e0d96156f8e4d2ca20"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-24T11:44:33"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/7cb32d4d8e2832b81c79ed65945ec6f0"
  from="EEK Cooper &lt;s0567141@s...&gt;"
  author="EEK Cooper"
  date="2006-02-24T13:29:54"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/6cd74be75e657dd668d337c889ce0f93"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-24T13:44:41"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
<msg 
  url="2006/02/c26c49c6c9ec74064528e5356ed25ba9"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2006-02-24T14:12:39"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/7debb09fa92be1d26614641750c2962b"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2006-02-24T15:43:39"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/a8d5306ea95335fa3871ce04b6289eda"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-24T16:20:48"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
<msg 
  url="2006/02/0d77b7405d73424612a2f87c248a520f"
  from="Joaquin Cuenca Abela &lt;e98cuenc@y...&gt;"
  author="Joaquin Cuenca Abela"
  date="2006-02-24T16:01:16"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/514b7eb51d3714ebddea3b570138d626"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2006-02-27T12:58:26"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/56eb23e5b5df532f3a96deb2636c64ba"
  from="Ezra Cooper &lt;e.e.k.cooper@s...&gt;"
  author="Ezra Cooper"
  date="2006-03-02T13:57:54"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/edcb6dfeebf66ece60d6082affa6bdff"
  from="N. Owen Gunden &lt;ogunden@p...&gt;"
  author="N. Owen Gunden"
  date="2006-03-03T15:42:01"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/d460e75d3749dde5c0bad5c11de3ab92"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2006-03-09T07:15:02"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/231da31d9e4d41bb57a11da6da55987b"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2006-03-13T16:31:59"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/cd3612ec14e188c2bc68a79283052a6c"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2006-03-15T07:27:53"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/a50eb96dfda9a8898ea4624cadddb7f5"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2006-03-15T07:35:48"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
<msg 
  url="2006/03/e64da61b7054e651027c4863ef8992b4"
  from="Alain Frisch &lt;Alain.Frisch@i...&gt;"
  author="Alain Frisch"
  date="2006-03-15T07:40:20"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/6345d4a53c7192c8f5f1f39dc8e31286"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2006-03-15T08:41:20"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/0bbb58749645b5dedac1994d4d87ba05"
  from="Christophe Raffalli &lt;raffalli@u...&gt;"
  author="Christophe Raffalli"
  date="2006-03-15T21:18:16"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2006/02/ca3552c47ae89b129e527dca531a1a9f"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2006-02-24T15:31:15"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
</thread>

<contents>
Hi all,

My team just noticed that the behavior of Map.fold changed in OCaml 
version 3.08.4.

I'm concerned that the OCaml team would change the behavior of a 
library function so late in its life. I understand that it was thought 
to be "wrong" &lt;http://caml.inria.fr/mantis/view.php?id=3607&gt;, but 
changing the behavior of an existing function breaks existing apps and 
shouldn't be done lightly. Such changes should, of course, be carefully 
highlighted in a change log as *incompatible* changes, requring updates 
to existing programs--this one was buried under "bug fixes." The old 
behavior was apparently longstanding since 1995 
&lt;http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/stdlib/map.ml?annotate=1.15;f=h&gt; 
versus 
&lt;http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/stdlib/map.ml?annotate=1.15.4.1;f=h&gt;. If OCaml is meant to be a practical programming language, it should provide consistency for its users from version to 
version.

That said, we're now in the position where we need to compile different 
code depending on the version of OCaml. What's the best way to do 
conditional compilation in OCaml? Should we use cpp and #ifdef, or is 
there a more OCaml-savvy solution?

Thanks in advance,
Ezra


</contents>

</message>

