[Bro-Dev] #754: Complete implementation of switch statement

Bro Tracker bro at tracker.bro-ids.org
Wed Jan 16 14:40:14 PST 2013


#754: Complete implementation of switch statement
----------------------------+------------------------
  Reporter:  seth           |      Owner:  robin
      Type:  Merge Request  |     Status:  reopened
  Priority:  Normal         |  Milestone:  Bro2.2
 Component:  Bro            |    Version:  git/master
Resolution:                 |   Keywords:  language
----------------------------+------------------------

Comment (by jsiwek):

 In [be71a42f4c9cdde69b74f18203db062dbc18dea2/bro]:
 {{{
 #!CommitTicketReference repository="bro"
 revision="be71a42f4c9cdde69b74f18203db062dbc18dea2"
 Add "fallthrough" keyword, require a flow statement to end case blocks.

 Case blocks in switch statements now must end in a break, return, or
 fallthrough statement to give best mix of safety, readability, and
 flexibility.

 The new fallthrough keyword explicitly allows control to be passed to the
 next case block in a switch statement.

 Addresses #754.
 }}}

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/754#comment:30>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list