[Issue 4660] Different writeln output for lazy sequences

2014-08-15 Thread via Digitalmars-d-bugs
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

[Issue 4660] Different writeln output for lazy sequences

2014-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4660 bearophile_h...@eml.cc changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Issue 4660] Different writeln output for lazy sequences

2014-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4660 --- Comment #6 from hst...@quickfur.ath.cx --- I agree with Kenji too. --

[Issue 4660] Different writeln output for lazy sequences

2014-08-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4660 --- Comment #5 from Andrei Alexandrescu --- I agree with Kenji. --

[Issue 4660] Different writeln output for lazy sequences

2014-08-15 Thread via Digitalmars-d-bugs
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

[Issue 4660] Different writeln output for lazy sequences

2014-08-14 Thread via Digitalmars-d-bugs
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

[Issue 4660] Different writeln output for lazy sequences

2014-08-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4660 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #2

[Issue 4660] Different writeln output for lazy sequences

2011-01-09 Thread d-bugmail
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: --

[Issue 4660] Different writeln output for lazy sequences

2011-01-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4660 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |ASSIGNED CC|