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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Walter Bright <[email protected]> ---
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.

--

Reply via email to