[Bro-Dev] #866: Problem with set initializers

Bro Tracker bro at tracker.bro-ids.org
Thu Nov 29 14:01:27 PST 2012

#866: Problem with set initializers
  Reporter:  seth     |      Owner:
      Type:  Problem  |     Status:  new
  Priority:  Normal   |  Milestone:  Bro2.2
 Component:  Bro      |    Version:  git/master
Resolution:           |   Keywords:  language

Comment (by jsiwek):

 In [f7e07f5f097036bf80252b03e5e79408f3f243be/bro]:
 #!CommitTicketReference repository="bro"
 Fix various bugs with table/set attributes.

 - Identifiers that are initialized with set()/table() constructor
   expressions now inherit attributes from the expression.  Before,
   statements like

      const i: set[string] = set() &redef;

   associated the attribute with the set() constructor, but not the
   "i" identifier, preventing redefinition.  Addresses #866.

 - Allow &default attribute to apply to tables initialized as empty
   (via either "{ }" or "table()") or if the expression supplied to it
   can evaluate to a type that's promotable to the same yield type as
   the table.

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

More information about the bro-dev mailing list