[Bro-Dev] #983: Deep typing bug

Bro Tracker bro at tracker.bro.org
Mon May 13 08:32:34 PDT 2013

#983: Deep typing bug
  Reporter:  seth     |      Owner:
      Type:  Problem  |     Status:  new
  Priority:  High     |  Milestone:  Bro2.2
 Component:  Bro      |    Version:  git/master
Resolution:           |   Keywords:

Comment (by seth):

 > Any more preferences/ideas?
 What if we could use named types as ctors directly?

 type Foo: table[count] of string;
 global data = Foo(1 => "test");

 type Bar: record {
         a: count;
         b: string;
 global data2 = Bar($a=1,$b="test");

 I can see how that could be a little confusing, but at least the parser
 could pick up on mis-use of types automatically and it's very clean to
 read although it does expand on the existing potential confusion between
 type ctors and functions.

 The one thing I do really like about this is that I feel like a lot of the
 current Bro auto typing magic (that fails in many situations) would

Ticket URL: <http://tracker.bro.org/bro/ticket/983#comment:8>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker

More information about the bro-dev mailing list