[Issue 16495] __traits(fullyQualifedName) instead of std.traits.fullyQualifiedName

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 13 05:55:22 UTC 2019


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
           Hardware|x86_64                      |All
                 OS|Windows                     |All

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
I've added and tested such a new __trait. There are problems when using the raw
output as produced by the compiler (Type.toPrettyChars(true) or
DSymbol.toPrettyChars)

1. complex combinations of type qualifiers are not like expected by phobos
unittests
2. template declarations include the constraints
3. handling of single template parameter (so w/o parens) is different

It's probable that toPrettyChars uses the header gen, which is not adapted to
produce the fqn. It's rather used to format the errors.

But 80% of the tests pass.

--


More information about the Digitalmars-d-bugs mailing list