[Issue 9819] Allow access to named tuple's names.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 22 19:44:33 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=9819

--- Comment #2 from github-bugzilla at puremagic.com ---
Commit pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/8f1991447c09c73c30da18e687f2da31c87a0c0a
Fix #9819: Allow access to named tuple's names

Adds a `fieldNames` alias to `std.typecons.Tuple` to return the user-supplied
names.  The actual fields are in an expression tuple, so the
user-supplied names are simply aliases, which previous to this PR, were
not accessible.

https://issues.dlang.org/show_bug.cgi?id=9819

Fix Issue 9819

--


More information about the Digitalmars-d-bugs mailing list