[Issue 3813] Bad writeln of arrays

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3813 Andrei Alexandrescu changed: What|Removed |Added Version|2.040 |D2 --

[Issue 3813] Bad writeln of arrays

2011-09-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #24 from bearophile_h...@eml.cc 2011-09-06 02:31:57 PDT --- (In reply to comment #23) > Why are we spending our valuable time on this? Because I print tuples often, and I'd like to see this situation improved. See also: http://www.

[Issue 3813] Bad writeln of arrays

2011-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 Andrei Alexandrescu changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Issue 3813] Bad writeln of arrays

2011-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #22 from bearophile_h...@eml.cc 2011-09-05 16:14:07 PDT --- (In reply to comment #21) > more consistency is better than less consistency. Consistency is good when the situations don't change. But in our discussions the conditions w

[Issue 3813] Bad writeln of arrays

2011-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #21 from Andrei Alexandrescu 2011-09-05 06:02:55 PDT --- (In reply to comment #17) > (In reply to comment #16) > > Let's use [,,,] for all ranges. Thanks Kenji for your work. > > What's your rationale for this decision? Absent ot

[Issue 3813] Bad writeln of arrays

2011-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #20 from bearophile_h...@eml.cc 2011-09-05 04:12:39 PDT --- (In reply to comment #19) > If you want that result, following code will work. > > writefln("[%(%.1f, %)]", array2); // prints [1.0, 2.0] What I meant to say is that I'd

[Issue 3813] Bad writeln of arrays

2011-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #19 from Kenji Hara 2011-09-05 03:11:08 PDT --- (In reply to comment #18) > (In reply to comment #17) > > > This is not good, because from the text you can't tell FP point numbers from > > integer ones. In a similar situation Pyth

[Issue 3813] Bad writeln of arrays

2011-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #18 from bearophile_h...@eml.cc 2011-09-05 02:55:45 PDT --- (In reply to comment #17) > This is not good, because from the text you can't tell FP point numbers from > integer ones. In a similar situation Python prints this, that I t

[Issue 3813] Bad writeln of arrays

2011-09-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #17 from bearophile_h...@eml.cc 2011-09-05 02:53:08 PDT --- (In reply to comment #16) > Let's use [,,,] for all ranges. Thanks Kenji for your work. What's your rationale for this decision? --- In 2.055beta

[Issue 3813] Bad writeln of arrays

2011-09-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #16 from Andrei Alexandrescu 2011-09-04 12:38:55 PDT --- Let's use [,,,] for all ranges. Thanks Kenji for your work. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mai

[Issue 3813] Bad writeln of arrays

2011-09-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #15 from bearophile_h...@eml.cc 2011-09-02 16:38:20 PDT --- (In reply to comment #14) > (2) I think that the output like "[e0, e1, ..., eN]" is *range formatting*, > not > array formatting, even if it looks like array. And an array

[Issue 3813] Bad writeln of arrays

2011-09-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #14 from Kenji Hara 2011-09-02 16:00:43 PDT --- (In reply to comment #13) > (In reply to comment #12) > > https://github.com/D-Programming-Language/phobos/pull/126 > > > > All of ranges are formatted like "[elem1, elem2, ...]". >

[Issue 3813] Bad writeln of arrays

2011-09-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #13 from bearophile_h...@eml.cc 2011-09-02 15:11:43 PDT --- (In reply to comment #12) > https://github.com/D-Programming-Language/phobos/pull/126 > > All of ranges are formatted like "[elem1, elem2, ...]". I appreciate the work you

[Issue 3813] Bad writeln of arrays

2011-09-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 Kenji Hara changed: What|Removed |Added Keywords||patch --- Comment #12 from Kenji Hara 20

[Issue 3813] Bad writeln of arrays

2011-01-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #11 from Denis Derman 2011-01-28 06:08:53 PST --- More generally, why don't writeln / formatValue / whatever builtin funcs used for output simply recurse to format elements of collections. This is how things work in all languages I

[Issue 3813] Bad writeln of arrays

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

[Issue 3813] Bad writeln of arrays

2011-01-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #10 from bearophile_h...@eml.cc 2011-01-08 03:30:24 PST --- This Python2 program: array1 = [1, 2] print array1 array2 = [1.0, 2.0] print array2 Prints: [1, 2] [1.0, 2.0] This similar D2 program: import std.stdio; void main() {

[Issue 3813] Bad writeln of arrays

2010-12-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 Denis Derman changed: What|Removed |Added CC||denis.s...@gmail.com --- Comment #9 fro

[Issue 3813] Bad writeln of arrays

2010-10-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #8 from bearophile_h...@eml.cc 2010-10-29 17:28:53 PDT --- import std.stdio, std.range; void main() { writeln(iota(5)); } With DMD 2.050 that program prints: [0, 1, 2, 3, 4] But that's not an array, it's a lazy sequence, and

[Issue 3813] Bad writeln of arrays

2010-10-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 --- Comment #7 from bearophile_h...@eml.cc 2010-10-11 16:20:06 PDT --- See also bug 5043 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 3813] Bad writeln of arrays

2010-08-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3813 bearophile_h...@eml.cc changed: What|Removed |Added Summary|Bad writeln of string |Bad writeln of arrays