How do I defeat the gratuitous qualification of alias members?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Fri Apr 5 10:18:19 PDT 2013
On 4/5/13, Chad Joan <chadjoan at gmail.com> wrote:
> Enums do not have instances.
Sure they do.
enum Foo
{
X,
Y
}
void test(Foo foo) { }
void main()
{
Foo foo = Foo.Y;
test(foo);
}
More information about the Digitalmars-d-learn
mailing list