From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA27105; Tue, 21 May 2002 23:06:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA27216 for ; Tue, 21 May 2002 23:06:52 +0200 (MET DST) Received: from mbg.sphere.ne.jp (mbg.sphere.ne.jp [210.150.254.179]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g4LL6pX26521 for ; Tue, 21 May 2002 23:06:51 +0200 (MET DST) Received: from localhost (pl047.nas521.k-tokyo.nttpc.ne.jp [210.165.66.47]) by mbg.sphere.ne.jp (Postfix) with ESMTP id 1C4553A2EA for ; Wed, 22 May 2002 06:06:49 +0900 (JST) Subject: [Caml-list] Evaluation order of Stream.from To: caml-list@inria.fr X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020521220938P.yoriyuki@mbg.sphere.ne.jp> Date: Tue, 21 May 2002 22:09:38 +0900 From: YAMAGATA yoriyuki X-Dispatcher: imput version 991025(IM133) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, folks. I have a question about Stream.from. If I create a stream by Stream.from f by some function f, in what order f is called? I mean, is it guaranteed that f is always called as f 1, f 2, f 3, ....? or is the order like f 1, f 3, f 5, f 7, f 2, f 4, .... possible? The manual states nothing, so maybe I have to assume there is no guarantee. But then using a function with side effects is nearly impossible, which is unfortunate. I tried to understand the source, but it is full of magic and anyways, the source does not make any guarantee for the future. -- Yamagata Yoriyuki http://www.mars.sphere.ne.jp/yoriyuki/ ------------------- 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