You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 235 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Original bug ID: 235
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Vladimir Támara
Version: 3.00
OS: GNU/LINUX
Submission from: gateway1-nehmer.informatik.uni-kl.de (131.246.19.252)
If I define a function to convert a stream of chars to a string like:
let rec string_of_stream str=
match str with parser
| [<'c>] -> (String.make 1 c)^(string_of_stream str)
| [<>] -> ""
;;
The following behavior is correct:
string_of_stream (Stream.of_string "Hi");;
But I think the following is not:
string_of_stream [<Stream.of_string "Hi">];;
Uncaught exception: Failure "illegal stream concatenation".
(I saw with Stream.dump that Stream.of_string generates a Sgen while [<...>]
generates an Slazy, probably Slazy doesn't mix well with Sgen (?)).
The text was updated successfully, but these errors were encountered: