C++ vs D: Default param values and struct to array casting

Maximillian maxmill at gmail.com
Sat Sep 7 11:27:57 UTC 2019

On Saturday, 7 September 2019 at 11:22:09 UTC, Maximillian wrote:
> Please could you tell what "goto case;" do here?

I see now "fall-through" [1].

To be honest I like this feature in C and I was sad it didn't 
work in D, at least now I know how to solve it. :)


[1] https://dlang.org/spec/statement.html#GotoStatement
"This is to set apart with C's error-prone implicit fall-through 
behavior. goto case; could be used for explicit fall-through:"

More information about the Digitalmars-d-learn mailing list