On Thu, Dec 6, 2018 at 4:09 PM Vern Paxson <v...@corelight.com> wrote:

> This means I have to first build up a *separate* vector of all the indexes,
> then iterate over that to remove them.

I guess re-assigning a new, empty table to the variable could be
analogous to deleting all entries and also avoids the iterator
invalidation problem ?

> Proposal: extend "delete" so that if applied to a table or a set, it clears
> out all of its elements.

But yeah, that also seems clearer to me at first thought.

- Jon
_______________________________________________
bro-dev mailing list
bro-dev@bro.org
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to