https://issues.dlang.org/show_bug.cgi?id=4660
--- Comment #8 from hst...@quickfur.ath.cx ---
The point is that writeln treats both lazy and non-lazy ranges generically,
that's why it does not distinguish between them. If you really wanted to
distinguish between them, you could do this:
-
stri
https://issues.dlang.org/show_bug.cgi?id=4660
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=4660
--- Comment #6 from hst...@quickfur.ath.cx ---
I agree with Kenji too.
--
https://issues.dlang.org/show_bug.cgi?id=4660
--- Comment #5 from Andrei Alexandrescu ---
I agree with Kenji.
--
https://issues.dlang.org/show_bug.cgi?id=4660
--- Comment #4 from Kenji Hara ---
writeln formats all ranges by using the style [a, b, ...]. And array is a range
in D.
Additionally, writeln always evaluate all range elements to print them. So, the
range laziness is meaningless when you want to pr
https://issues.dlang.org/show_bug.cgi?id=4660
bearophile_h...@eml.cc changed:
What|Removed |Added
Assignee|and...@erdani.com |nob...@puremagic.com
--- Comment #3 f
https://issues.dlang.org/show_bug.cgi?id=4660
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--- Comment #2
http://d.puremagic.com/issues/show_bug.cgi?id=4660
--- Comment #1 from bearophile_h...@eml.cc 2011-01-09 03:00:22 PST ---
Now I think that a better output is:
[2; 3; 4]
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: --
http://d.puremagic.com/issues/show_bug.cgi?id=4660
Andrei Alexandrescu changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|