Browse thread
[Caml-list] Different types of streams
- Nicolas George
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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