summaryrefslogtreecommitdiff
path: root/stdlib/stream.mli
diff options
context:
space:
mode:
authorDaniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>1995-12-07 19:44:19 +0000
committerDaniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>1995-12-07 19:44:19 +0000
commite5884f1b628210a2dbf048929432d596adcd5b6a (patch)
tree021efce6030217a17a9bb472d58e5c675953b982 /stdlib/stream.mli
parent146c473defb3cc5ba4ff2d8887f34f70c4f845ff (diff)
downloadocaml-e5884f1b628210a2dbf048929432d596adcd5b6a.tar.gz
Les fonctions de streams rapides, "from", "of_channel", etc. ne peuvent plus
se me'langer avec les streams normaux. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@518 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/stream.mli')
-rw-r--r--stdlib/stream.mli3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/stream.mli b/stdlib/stream.mli
index 4ae775a471..5c6c8188bc 100644
--- a/stdlib/stream.mli
+++ b/stdlib/stream.mli
@@ -24,6 +24,9 @@ exception Parse_error of string
accepted, but one of the following components is rejected. *)
(** Stream builders *)
+(* Warning: these functions create streams with fast access; it is illegal
+ to mix them with streams built with [[: :]]; would raise [Failure]
+ when accessing such mixed streams. *)
val from : (int -> 'a option) -> 'a t
(* [Stream.from f] returns a stream built from the function [f].