[Bro-Dev] #679: Add support for deleting vector elements
Bro Tracker
bro at tracker.bro-ids.org
Tue Nov 15 12:40:30 PST 2011
#679: Add support for deleting vector elements
----------------------+------------------------
Reporter: matthias | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro2.0
Component: Bro | Version: git/master
Keywords: |
----------------------+------------------------
The following code should work but doesn't:
{{{
global v: vector of string;
bro_init()
{
v[3] = "foo";
delete v[3];
}
}}}
It gives the following error message:
{{{
error in ./vector.bro, line 6: illegal delete statement (delete v[3])
}}}
Sets and tables support the `delete` operation, and an intuitive
brogrammer expects the same thing to work with vectors as well.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/679>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list