Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <>
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:  FAQ:
To unsubscribe, mail  Archives: