[Bro-Dev] "delete" of entire tables/sets
jsiwek at corelight.com
Thu Dec 6 14:37:11 PST 2018
On Thu, Dec 6, 2018 at 4:09 PM Vern Paxson <vern at 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.
More information about the bro-dev