RFC to: my need for 'static switch' and CT 'static variables'

Alexey animuspexus at protonmail.com
Thu Nov 25 22:04:36 UTC 2021


On Thursday, 25 November 2021 at 22:00:15 UTC, Alexey wrote:
> I would want an static 'switch here',

I mean something like
```D
static switch (v.mode)
{
default:
    static assert(false, "v.mode" is invalid)
case "gs_w_d":
  // etc...
}
```


More information about the Digitalmars-d-learn mailing list