English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Different types of streams
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-08-26 (21:29)
From: Nicolas George <nicolas.george@e...>
Subject: [Caml-list] Different types of streams
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