<?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="2002/12/dccc53828aa05cb7b933659d7f8e9852"
  from="Remi VANICAT &lt;vanicat@l...&gt;"
  author="Remi VANICAT"
  date="2002-12-09T23:54:09"
  subject="Re: [Caml-list] Streams.from"
  prev="2002/12/3cb94c391a4d8d5c79e7a099c28800da"
  next="2002/12/167a6c6cd1366f96e94bab06a3535858"
  prev-in-thread="2002/12/6e81d0c7f05a92745a1fd81063bea87b"
  next-in-thread="2002/12/13c766eaa064ba0d0d9a119cd8151d2b"
  prev-thread="2002/12/5f28c0d6c5868bcafd8e8dd4e701f0b3"
  next-thread="2002/12/303524700573103127c46d2209d89f49"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Streams.from">
<msg 
  url="2002/12/4f26c91200b871153ac571f4e71c7d1f"
  from="Nick Grey &lt;nickgrey0112@f...&gt;"
  author="Nick Grey"
  date="2002-12-09T21:22:03"
  subject="[Caml-list] Streams.from">
<msg 
  url="2002/12/6e81d0c7f05a92745a1fd81063bea87b"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2002-12-09T22:22:27"
  subject="Re: [Caml-list] Streams.from">
<msg 
  url="2002/12/dccc53828aa05cb7b933659d7f8e9852"
  from="Remi VANICAT &lt;vanicat@l...&gt;"
  author="Remi VANICAT"
  date="2002-12-09T23:54:09"
  subject="Re: [Caml-list] Streams.from">
</msg>
<msg 
  url="2002/12/13c766eaa064ba0d0d9a119cd8151d2b"
  from="Nick Grey &lt;nickgrey0112@f...&gt;"
  author="Nick Grey"
  date="2002-12-10T07:39:20"
  subject="Re: [Caml-list] Streams.from">
</msg>
<msg 
  url="2002/12/453315f436ce183655c9744929e58bee"
  from="Daniel de Rauglaudre &lt;daniel.de_rauglaudre@i...&gt;"
  author="Daniel de Rauglaudre"
  date="2002-12-10T12:29:09"
  subject="Re: [Caml-list] Streams.from">
</msg>
</msg>
</msg>
</thread>

<contents>
Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@lri.fr&gt; writes:

&gt; Nick Grey writes:
&gt;  &gt; 
&gt;  &gt; When a stream is created using Stream.from, is the function f garunteed
&gt;  &gt; to be called with the stream count parameter 0, 1, 2, ...
&gt;
&gt; No. For instance, repeated calls to Stream.peek will clearly call f
&gt; several times on the same count value (see the code in
&gt; stdlib/stream.ml)

Stream.peek cache value from parser created by Stream.from. So the
answer is that with the current implementation of all the function of
the module Stream, f will be call one, and only one time for each
count parameter, and in the good order. But this is not written in the
specification. 



-- 
Rémi Vanicat
vanicat@labri.u-bordeaux.fr
http://dept-info.labri.u-bordeaux.fr/~vanicat
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

