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 XAA27620; Sun, 26 Aug 2001 23:29:58 +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 XAA27580 for ; Sun, 26 Aug 2001 23:29:57 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f7QLTuj06210 for ; Sun, 26 Aug 2001 23:29:56 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f7QLTum21514 for ; Sun, 26 Aug 2001 23:29:56 +0200 (CEST) Received: from aimlin.ens.fr (root@clipper [129.199.129.1]) by clipper.ens.fr (8.9.2/jb-1.1) id XAA27950 for ; Sun, 26 Aug 2001 23:29:26 +0200 (MET DST) Received: by aimlin.ens.fr (Postfix, from userid 501) id DB8BA38080; Sun, 26 Aug 2001 20:23:17 +0200 (CEST) Date: Sun, 26 Aug 2001 20:23:17 +0200 From: Nicolas George To: caml-list@inria.fr Subject: [Caml-list] Different types of streams Message-ID: <20010826202317.A9010@aimlin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is there any deep reason to have two incompatible types of streams in the same Caml type: those built using [< >] expressions and those built with Stream.from Stream.of_channel? I can not see anything in the source code, and I indeed managed to modify it to remove this distinction. It has a small cost: I had to add an `index' field in the gen structure, because the global `count' field could not be used anymore, and of_stream streams are slower by about 5%. But I think the stream type would be really more useful like that. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr