[Issue 14964] __traits(isAlias, foo)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 9 02:00:44 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=14964
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> ---
I see this is a feature that could lead to a lot of unforeseen consequences.
The language semantics very much rely on an alias being indistinguishable from
the target.
As for the size_t example, it's not even possible to serialize it as a size_t.
It will go out as int or long. Name mangle a size_t, and there is no size_t
mangling, it's int or long.
> __traits(getAllMembers, funcs)
Perhaps a better solution is to have getAllMembers ignore aliases, as aliases
are members only for the purpose of symbol lookup.
--
More information about the Digitalmars-d-bugs
mailing list