How do I defeat the gratuitous qualification of alias members?
bearophile
bearophileHUGS at lycos.com
Fri Apr 5 03:30:37 PDT 2013
Chad Joan:
> It's always bugged me that D enums seem to prevent the
> separation of two distinct enum features:
> - Type safety.
> - Forced name qualification.
>
> Usually I find the former incredibly useful and the latter to
> be a hindrance. It's very inconsistent with how module scoping
> works: module qualification is not required unless there is an
> ambiguity. I wish enums worked the same way.
I'd like modules to require qualifications on default, just like
in Python :-)
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list