One more reply to myself. :)
On Nov 1, 2012, at 10:44 PM, Seth Hall <[email protected]> wrote:
> global foobar: function(a: count) &multibody;
>
> function foobar(a: count) &priority=5
> {
> print "foobar at priority 5";
> }
>
> function foobar(a: count) &priority=8
> {
> print "foobar at priority 8";
> }
I was thinking about how this would look internally and I suspect that the
easiest thing to do would be to "inline" the bodies of all of the functions
into a single function body. There would be some work that would need to be
done to deal with edge cases brought about by smashing scopes together like
this, but I think it should be possible to watch for locals being created and
making sure that there aren't any conflicting names (Bro should probably not
start up if there are conflicting names).
.Seth
--
Seth Hall
International Computer Science Institute
(Bro) because everyone has a network
http://www.bro-ids.org/
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev