Page 1 of 1

[HD Pg 152, Sec. 6.3.0 - the-break-statement]

Posted: Wed Jul 21, 2021 3:54 pm
by enthunoob
"This is called “fall through” behavior of a switch statement.
In absence of a break statement, the control falls through to the next case block and the next case block, and so on until it reaches the end of the switch statement. This feature is used when... "

Are you sure it's not just a bug? :lol:

Re: [HD Pg 152, Sec. 6.3.0 - the-break-statement]

Posted: Thu Jul 22, 2021 5:57 am
by admin
It is not unintentional behavior. That is how it is designed to work. Perks of being the language designer!