[Bro-Dev] assignment clash error when initializing local table
Siwek, Jonathan Luke
jsiwek at illinois.edu
Tue Jan 3 11:43:23 PST 2012
> From old manual, we can initialize global table when it is declared, like this.
>
> global a: table[count] of string = {
> [11] = "eleven",
> [5] = "five",
> };
>
>
> However, if I put them within event or function, assignment clash error happens. Is there any way that I can do the same thing for the local defined table?
This syntax looks like it currently works:
local a: table[count] of string = table(
[11] = "eleven",
[5] = "five"
);
+Jon
More information about the bro-dev
mailing list