The forgotten deprecation: switch case fall-through
Bastiaan Veelo
Bastiaan at Veelo.net
Mon Dec 14 00:00:41 UTC 2020
On Sunday, 13 December 2020 at 20:45:55 UTC, kdevel wrote:
> On Thursday, 3 December 2020 at 09:29:12 UTC, Bastiaan Veelo
> wrote:
[...]
>> I am wondering when its deprecation period will be ended.
>
> For the non-trivial ArgumentList case [1] it has not even
> startet yet
>
> ~~~switchbreak.d
> int foo (string s)
> {
> int a;
> switch (s) {
> case "eins", "zwei":
> a = 1;
> default: // no warning
> }
> return a;
> }
Oh dear!
— Bastiaan.
More information about the Digitalmars-d
mailing list