Thread overview
[Issue 12743] tuple printing of alias names
May 13, 2014
Andrej Mitrovic
May 13, 2014
Andrej Mitrovic
Feb 13, 2021
Walter Bright
Dec 17, 2022
Iain Buclaw
May 13, 2014
https://issues.dlang.org/show_bug.cgi?id=12743

Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---


*** This issue has been marked as a duplicate of issue 9593 ***

--
May 13, 2014
https://issues.dlang.org/show_bug.cgi?id=12743

bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #2 from bearophile_hugs@eml.cc ---
(In reply to Andrej Mitrovic from comment #1)
> 
> *** This issue has been marked as a duplicate of issue 9593 ***

Reopened because they are two quite different issues.

In Issue 9593 I've asked for a way to avoid the printing of the tuple type with a formatting string using "-":

writefln("%-s", data[0]);
==>
("Fred", 5)

writefln("%-(%s %)", data);
==>
("Fred", 5) ("Bob", 10) ("Mark", 30)


While in this issue I have suggested to print the alias name (or to introduce a
NamedTuple):

alias Pair2 = Tuple!(int, int);
auto a2 = [Pair2(1, 2), Pair2(3, 4)];
a2.writeln;
==>
[Pair2(1, 2), Pair2(3, 4)]

--
May 13, 2014
https://issues.dlang.org/show_bug.cgi?id=12743

--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
(In reply to bearophile_hugs from comment #2)
> (In reply to Andrej Mitrovic from comment #1)
> > 
> > *** This issue has been marked as a duplicate of issue 9593 ***
> 
> Reopened because they are two quite different issues.

Either way please start making pull requests. Making a 1000 subtly-different enhancement requests isn't helping anyone.

--
February 13, 2021
https://issues.dlang.org/show_bug.cgi?id=12743

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=3248

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=12743

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=12743

--- Comment #4 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10054

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--