This is probably trivial or impossible Code Introspection...
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 19 12:54:43 PDT 2015
On Saturday, 19 September 2015 at 19:52:56 UTC, WhatMeWorry wrote:
> So I've got type and value of each member, but I want their
> actual names?
http://dlang.org/phobos/std_traits.html#FieldNameTuple
You can also do something like `foo.tupleof[idx]["foo.".length ..
$]` for an individual thing but the phobos one should be the
nicest.
More information about the Digitalmars-d-learn
mailing list