From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id DA427BB83 for ; Fri, 26 May 2006 16:52:51 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k4QEqpW8022909 for ; Fri, 26 May 2006 16:52:51 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA30010 for ; Fri, 26 May 2006 16:52:51 +0200 (MET DST) Received: from mail-outfwd.lms.be (Kaiserslautern1.lms-gmbh.de [213.68.136.230]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k4QEqorj012414 for ; Fri, 26 May 2006 16:52:50 +0200 Received: from localhost (unknown [127.0.0.1]) by mail-outfwd.lms.be (Postfix) with ESMTP id 01E787F425 for ; Fri, 26 May 2006 16:55:17 +0200 (CEST) Received: from mail-kl.lmsintl.com ([127.0.0.1]) by localhost (kl-ftp [127.0.0.1]) (amavisd-new, port 20024) with ESMTP id 05069-05 for ; Fri, 26 May 2006 16:55:16 +0200 (CEST) Received: from kaiserslautern1.lmsintl.com (unknown [10.2.0.100]) by mail-kl.lmsintl.com (Postfix) with ESMTP id E2149B6EC9 for ; Fri, 26 May 2006 16:55:16 +0200 (CEST) Received: by kaiserslautern1.lmsintl.com with Internet Mail Service (5.5.2653.19) id ; Fri, 26 May 2006 16:52:50 +0200 Message-ID: <26EB47FDD566A7469FC862DAF373792F013FE579@kaiserslautern1.lmsintl.com> From: Christoph Bauer To: caml-list Subject: Streams and call-by-need Date: Fri, 26 May 2006 16:52:43 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Virus-Scanned: by IT Services X-Miltered: at concorde with ID 44771643.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 44771642.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; endline:01 endline:01 val:01 abstr:01 val:01 abstr:01 unit:03 unit:03 let:03 let:03 stream:04 stream:04 christoph:04 christoph:04 looks:08 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Hi, do streams support call-by-need? This looks like call-by-name: # let s = [< '(print_endline "a"); '(print_endline "b") >] ;; val s : unit Stream.t = # let t = [< s; s >] ;; val t : unit Stream.t = # Stream.next t;; a - : unit = () # Stream.next t;; b - : unit = () # Stream.next t;; a - : unit = () # Stream.next t;; b - : unit = () Christoph Bauer