On 2015-12-04 04:18, Steven Schveighoffer wrote:

In D-speak, it looks like this:

enum Foo
{
    Bar,
    Baz
}

Foo foo;

switch(foo)
{
    case .Bar: // Foo is implied
    case .Baz:
}

void fun(Foo);

fun(.Bar); // Foo is implied

I don't think we could have this exact syntax, though.

I brought that up before, Walter doesn't like it.

--
/Jacob Carlborg

Reply via email to