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

Bro Tracker bro at tracker.bro-ids.org
Wed Jan 9 22:23:30 PST 2013


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

Comment (by vern):

 Hmmmm I find most of those fairly modest arguments, though I agree some of
 them will clearly get good benefit.  (The coupling with the global "cmd"
 in policy/frameworks/control/controller.bro is pretty weird ...)

 What are the semantics for "fall through"?  Are cases exclusive, or do
 they require something like "break" to prevent fall-through?  (I'm a fan
 of the former, but then you need a way of associating multiple labels with
 a single case-block.  For example, "case A, B, C: ..." rather than C-style
 "case A: case B: case C:".)

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



More information about the bro-dev mailing list