Next: , Up: Values Overview



3.1.1 Bro Types

There are 18 (XXX check this) types of values in the Bro type system:

Every value in a Bro script has one of these types. For most types there are ways of specifying constants representing values of the type. For example, 2.71828 is a constant of type double, and 80/tcp is a constant of type port. The discussion of types in XXX below includes a description of how to specify constants for the types.

Finally, even though Bro variables have static types, meaning that their type is fixed, often their type is inferred from the value to which they are initially assigned when the variable is declared. For example,

         local a = "hi there";

fixes a's type as string, and

         local b = 6;

sets b's type to count. See for further discussion.