[Bro-Dev] #1024: make it possible to use redef to append to vectors
Bro Tracker
bro at tracker.bro.org
Wed Jun 19 15:10:08 PDT 2013
#1024: make it possible to use redef to append to vectors
------------------------+-----------------------------
Reporter: dmandelb | Type: Feature Request
Status: new | Priority: Medium
Milestone: Bro2.2 | Component: Bro
Version: git/master | Keywords:
------------------------+-----------------------------
On 2013-06-19 18:00, Siwek, Jonathan Luke wrote:
> On Jun 19, 2013, at 11:14 AM, David Mandelberg <david at mandelberg.org>
wrote:
>
>> What's the recommended way to append to a vector? The documentation
>> says vectors are like tables, so I tried the below code, but it gives
>> some errors.
>>
>> const foo: vector of double = vector() &redef;
>>
>> redef foo += {
>> [|foo|] = 42.0
>> };
>
> Appending to a vector can't currently be done w/ redef, but I don't
> think it would be difficult to implement if you want to add a ticket
> to the tracker.
--
Ticket URL: <http://tracker.bro.org/bro/ticket/1024>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list