[Bro-Dev] script loading changes
robin at icir.org
Tue Jul 12 17:40:21 PDT 2011
Nice summary, thanks!
Two additional thoughts:
On Tue, Jul 12, 2011 at 17:26 -0500, you wrote:
> 1) When an @load or command line argument relies on BROPATH to search for
> the script/package, directory separator characters (i.e. '/') must be
> replaced with dots ('.').
Do we want to say "may" instead of "must"? So both versions would be
acceptable. If we @load a.b.c and don't find that file literally, we
try a/b/c. I think that would help help with (2) as well.
> 3) A new "@add x when y ..." directive that's an alternative to @load, and
> can be used to conditionally load script named 'x' only when the script
> named 'y' has already been loaded. The evaluation of that condition is
> postponed until after all scripts specified via @load or as command line
> arguments have been loaded. 'x' and 'y' can be named according to either
> (1) or (2) above.
One thing we haven't considered yet: what if "x" itself has new @loads
or @adds? Can we make that well-defined?
Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL * Fax +1 (510) 666-2956 * www.icir.org
More information about the bro-dev