-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward declarations of events don't work inside a module namespace #163
Comments
Other pitfall examples which are sort of the reverse problem from original: http://mailman.icsi.berkeley.edu/pipermail/bro-dev/2018-September/013057.html So assuming the main source of confusion is that event declarations implicitly add module prefixes to names, an idea would be to try to make event handler names also implicitly add module prefixes when they are not ambiguous with a name already in the global namespace. The name resolution process for things like |
At least we're now getting a warning for the test case in the first post, thanks to Vern's recent work:
|
Good to hear, as that was in fact exactly the use case (which I ran across in a different context) that made me think "geez we need to find these"! |
…possible The change to the capture-loss test is actually a fix for a bug exposed by the code change. Previously it wasn't firing the scheduled event because of a failed name lookup. Now that the lookup has been fixed, the event happens twice.
* origin/topic/timw/163-event-lookup: GH-163: Use ID name (including module name) to create EventExpr when possible
Moved from https://bro-tracker.atlassian.net/browse/BIT-71
Created by Robin Sommer at 2009-02-20T13:43:57.000-0600:
The example below never prints anything. Once the module statement is removed, everything works fine though.
Comment by Jon Siwek at 2015-03-16T14:38:28.976-0500:
Comment by Robin Sommer at 2016-07-08T18:46:57.988-0500:
The text was updated successfully, but these errors were encountered: