[Bro-Dev] #984: inconsistent scoping rules with events
Bro Tracker
bro at tracker.bro.org
Wed Apr 24 13:39:36 PDT 2013
#984: inconsistent scoping rules with events
------------------------+---------------------
Reporter: dmandelb | Type: Problem
Status: new | Priority: Low
Milestone: Bro2.2 | Component: Bro
Version: git/master | Keywords:
------------------------+---------------------
This works as expected:
{{{
module Foo;
event foo()
{
print("foo!");
}
event bro_init()
{
event foo();
}
}}}
But this doesn't print anything:
{{{
module Foo;
global foo: event();
event foo()
{
print("foo!");
}
event bro_init()
{
event foo();
}
}}}
This does though:
{{{
module Foo;
global foo: event();
event foo()
{
print("foo!");
}
event bro_init()
{
event Foo::foo();
}
}}}
I think I understand how it works now, but the scoping rules seem a bit
inconsistent for events versus other data types.
--
Ticket URL: <http://tracker.bro.org/bro/ticket/984>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list