<?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/1c195e18c279763175e2c125bb32d1fb"
  from="David Baelde &lt;david.baelde@g...&gt;"
  author="David Baelde"
  date="2006-02-05T16:59:02"
  subject="Re: [Caml-list] Curried form different from &quot;normal&quot;"
  prev="2006/02/1df604b17c7343a34edde8c4272eced3"
  next="2006/02/60ec1632c3246656d7b42c04b18ad63f"
  prev-in-thread="2006/02/1df604b17c7343a34edde8c4272eced3"
  next-in-thread="2006/02/6112bba539b885c93cae0b63530988e6"
  prev-thread="2006/02/97ace0c2a51e26bcec579188e650a0e3"
  next-thread="2006/02/21cfe6b7d7d8f6b67ad1bdfb90131fe8"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Curried form different from &quot;normal&quot;">
<msg 
  url="2006/02/1df604b17c7343a34edde8c4272eced3"
  from="Till Varoquaux &lt;till.varoquaux@g...&gt;"
  author="Till Varoquaux"
  date="2006-02-05T16:40:59"
  subject="Curried form different from &quot;normal&quot;">
<msg 
  url="2006/02/1c195e18c279763175e2c125bb32d1fb"
  from="David Baelde &lt;david.baelde@g...&gt;"
  author="David Baelde"
  date="2006-02-05T16:59:02"
  subject="Re: [Caml-list] Curried form different from &quot;normal&quot;">
</msg>
<msg 
  url="2006/02/6112bba539b885c93cae0b63530988e6"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2006-02-05T17:57:30"
  subject="Re: [Caml-list] Curried form different from &quot;normal&quot;">
<msg 
  url="2006/02/851635eb4ffea2ab9bcb25f9d631b133"
  from="Till Varoquaux &lt;till.varoquaux@g...&gt;"
  author="Till Varoquaux"
  date="2006-02-05T18:14:35"
  subject="Re: [Caml-list] Curried form different from &quot;normal&quot;">
</msg>
</msg>
</msg>
</thread>

<contents>
Hi,

Your statement is true only for purely functional definitions. Here,
there is a difference. The following piece of code is evaluated only
one, at the time of the outermost definition. So trailing is
instantiated only once.

&gt;       if !is_first then
&gt;         trailling:=Buffer.contents white
&gt;       else
&gt;         Buffer.add_buffer buf white;
&gt;       Buffer.reset white;
&gt;       is_first:=false;

This kind of effect is sometimes expected, however.

Have fun.
--
David

</contents>

</message>

