"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?
[HD Pg 152, Sec. 6.3.0 - the-break-statement]
Moderator: admin
-
- Posts: 60
- Joined: Thu Apr 15, 2021 12:21 pm
- Contact:
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 152, Sec. 6.3.0 - the-break-statement]
It is not unintentional behavior. That is how it is designed to work. Perks of being the language designer!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Google [Bot] and 122 guests