enum scope

Trass3r un at known.com
Thu Jan 26 11:27:49 PST 2012


>> What about be able to do something like this:
>>
>> enum Foo
>> {
>> public:
>> bar,
>> fooBar,
>> }
>>
>> Foo f = bar;
>>
>
> public is the wrong keyword. Furthermore, the solution is not better  
> than mixin Import!Foo; I think the extern(C) enum proposal is pragmatic  
> and makes more sense.

+1


More information about the Digitalmars-d mailing list