Cases where I miss C++ 'using'
Bill Baxter
dnewsgroup at billbaxter.com
Tue Nov 7 20:30:44 PST 2006
Daniel Keep wrote:
>
>
> Maybe if we allowed the prefix to be omitted when
>
> a. we're switching on an enum,
> b. we're passing an enum argument to a function and
> c. when we're assigning to an enum typed variable
>
> that would be enough. Then again, maybe that's just because I'm a lazy
> bugger :)
Another case would be comparing equality like
SomeEnum val;
...
if (val == SomeEnum.Bar) { ... }
Or any of the other operators defined for Enums probably - !=, |, &, etc.
--bb
More information about the Digitalmars-d
mailing list