https://issues.dlang.org/show_bug.cgi?id=3813
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|2.040 |D2
--
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://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
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
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #19 from Kenji Hara k.hara...@gmail.com 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
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
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #21 from Andrei Alexandrescu and...@metalanguage.com 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
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
http://d.puremagic.com/issues/show_bug.cgi?id=3813
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #16 from Andrei Alexandrescu and...@metalanguage.com 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
---
http://d.puremagic.com/issues/show_bug.cgi?id=3813
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||patch
--- Comment #12
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 are
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #14 from Kenji Hara k.hara...@gmail.com 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,
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #11 from Denis Derman denis.s...@gmail.com 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
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() {
http://d.puremagic.com/issues/show_bug.cgi?id=3813
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
Status|NEW |ASSIGNED
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
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: ---
18 matches
Mail list logo