<?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="2009/10/ce35c526e7b943e18d91b495af9c1d16"
  from="Mathias Kende &lt;mathias@k...&gt;"
  author="Mathias Kende"
  date="2009-10-25T14:11:52"
  subject="Re: [Caml-list] forbidden construct as right hand side of &quot;let rec&quot;"
  prev="2009/10/a14d04d2f47f019f098319c34066bb21"
  next="2009/10/1eb4d1cd54f3a41a16902b18a76c1d81"
  prev-in-thread="2009/10/68b2925e4155f78c4b1cfea3986cd546"
  next-in-thread="2009/10/1eb4d1cd54f3a41a16902b18a76c1d81"
  prev-thread="2009/10/76e901c3c12fed7c3148be46ddf26897"
  next-thread="2009/10/7ee1373a402f5409b88f6f1276dca2cd"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="forbidden construct as right hand side of &quot;let rec&quot;">
<msg 
  url="2009/10/61b3aa5e2d0ffb16d5dd3dca5a2afd9a"
  from="Mathias Kende &lt;mathias@k...&gt;"
  author="Mathias Kende"
  date="2009-10-22T22:22:41"
  subject="forbidden construct as right hand side of &quot;let rec&quot;">
<msg 
  url="2009/10/ee93fc2ebbff609fab15aae74877dc72"
  from="Stéphane Glondu &lt;steph@g...&gt;"
  author="Stéphane Glondu"
  date="2009-10-22T22:34:32"
  subject="Re: [Caml-list] forbidden construct as right hand side of &quot;let rec&quot;">
<msg 
  url="2009/10/68b2925e4155f78c4b1cfea3986cd546"
  from="Lukasz Stafiniak &lt;lukstafi@g...&gt;"
  author="Lukasz Stafiniak"
  date="2009-10-22T23:10:29"
  subject="Re: [Caml-list] forbidden construct as right hand side of &quot;let rec&quot;">
</msg>
<msg 
  url="2009/10/ce35c526e7b943e18d91b495af9c1d16"
  from="Mathias Kende &lt;mathias@k...&gt;"
  author="Mathias Kende"
  date="2009-10-25T14:11:52"
  subject="Re: [Caml-list] forbidden construct as right hand side of &quot;let rec&quot;">
<msg 
  url="2009/10/1eb4d1cd54f3a41a16902b18a76c1d81"
  from="Stéphane Glondu &lt;steph@g...&gt;"
  author="Stéphane Glondu"
  date="2009-10-25T15:04:09"
  subject="Re: [Caml-list] forbidden construct as right hand side of &quot;let rec&quot;">
</msg>
</msg>
</msg>
<msg 
  url="2009/10/830cdefbb38e2f1cb03855ffe0dd9248"
  from="Xavier Leroy &lt;Xavier.Leroy@i...&gt;"
  author="Xavier Leroy"
  date="2009-10-28T16:52:28"
  subject="Re: [Caml-list] forbidden construct as right hand side of &quot;let rec&quot;">
<msg 
  url="2009/10/e7887fc7ee6b2def14ee622fde067d4b"
  from="Lukasz Stafiniak &lt;lukstafi@g...&gt;"
  author="Lukasz Stafiniak"
  date="2009-10-28T22:45:06"
  subject="Re: [Caml-list] forbidden construct as right hand side of &quot;let rec&quot;">
</msg>
</msg>
</msg>
</thread>

<contents>
On Fri, 23 Oct 2009 00:34:29 +0200, Stéphane Glondu &lt;steph@glondu.net&gt;
wrote:
&gt; Mathias Kende a écrit :
&gt;&gt; 	let rec g = f g
&gt; 
&gt; What about:
&gt; 
&gt;   let rec g x = f g x

This will compile, but then I also want to write :
	let rec h = t (f h)
(with t : ('a -&gt; 'b) -&gt; 'a -&gt; 'b) but here, I can't afford to use
	let rec h x = t (f h) x
because t as some side effects and I need it to be evaluated only once.

Any idea on how to do that ?

</contents>

</message>

