Challenge

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 5 02:45:18 PDT 2016


On Wednesday, October 05, 2016 09:24:56 John Colvin via Digitalmars-d wrote:
> > It _is_ however recommended to use __traits(getMember, T,
> > member) over manually building it with strings with something
> > like T.stringof ~ "." ~ member, because the string manipulation
> > falls about in corner cases (e.g. it could result in a symbol
> > conflict). It's just that then has the unfortunate side effect
> > of requiring AliasSeq because of the bug.
> >
> > - Jonathan M Davis
>
> https://dlang.org/phobos/std_meta.html#.Alias   :)

IMHO, that doesn't improve things much, but it is slightly shorter. Thanks
for pointing it out.

- Jonathan M Davis



More information about the Digitalmars-d mailing list