Fix offered for "illegal stream concatenation" in Stream #3492
Original bug ID: 1284
The documentation in Stream.mli says:
Warning: these functions create streams with fast access; it is illegal
As an example of this, the following code fails:
(This is an artificial example. The actual example that motivated me
The resolution of bug 235 at
reaffirms that this behavior is considered acceptable, but it doesn't make
I plugged it into the ocaml source from anonymous CVS and the compiler
Is there any interest in incorporating this changed code into OCAML?
The revised .ml file is at
and the .mli file (which is identical to the old version, except for a few
As indicated by the header at the beginning of stream_fixed.ml, I'm happy to
Comment author: @damiendoligez
This restriction was removed in 3.11.0 and the example now works (tested in 3.12.1). I am updating the documentation (stream.mli) by removing the paragraph in question.
Problem fixed in 3.11.0 (commit 8893), documentation fixed in trunk (3.13.0) (commit 12077).