[Issue 18601] alias m = __traits(getMember, ...) doesn't work

2018-03-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18601

Simen Kjaeraas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||simen.kja...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #4 from Simen Kjaeraas  ---


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

--


[Issue 18601] alias m = __traits(getMember, ...) doesn't work

2018-03-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18601

--- Comment #3 from Manu  ---
I'm trolling my Blizzard colleagues by trying to get them interested in D...
but the quality bar needs to be a LOT higher here to be convincing compared to
my former workplaces.

--


[Issue 18601] alias m = __traits(getMember, ...) doesn't work

2018-03-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18601

--- Comment #2 from Manu  ---
Indeed, I am aware of the workaround, but that doesn't make the problem any
better.
People don't expect to have to wrap a thing in an Alias!() statement for no
logical reason... so it's just a gotcha that looks bad to new users (case in
question).

--


[Issue 18601] alias m = __traits(getMember, ...) doesn't work

2018-03-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18601

Jonathan M Davis  changed:

   What|Removed |Added

 CC||issues.dl...@jmdavisprog.co
   ||m

--- Comment #1 from Jonathan M Davis  ---
It can be trivially worked around by wrapping the __traits expression in a
std.meta.Alias, but I don't understand why that should be necessary. Certainly,
it seems like it shouldn't be necessary.

--