alias to fully qualified enum in scope where enum is expected
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 6 12:04:10 PDT 2014
On Wednesday, 6 August 2014 at 16:48:57 UTC, Timothee Cour via
Digitalmars-d-learn wrote:
> Thanks, I know with statement could be used but I was hoping
> for a solution
> not involving adding syntax to call site.
If you control the declaration of the enum, you could write:
alias a1 = A.a1;
alias a2 = A.a2;
A bit tedious, but it works, and could be automated if need be.
More information about the Digitalmars-d-learn
mailing list