> I assume what will at the moment happen with sets is that the pointers of
> records are checked for equality

Specifically, in my branch they are checked for whether the composite hash
index matches.  Happily, this works:

        type A: record {
                a: string;
        };

        event bro_init()
                {
                local i = A($a="a");
                local j = A($a="a");
                print set(i) | set(j);
                }

when run prints

        {
        [a=a]
        }

and if you change j to be $a="b" then you get:

        {
        [a=b],
        [a=a]
        }

This in fact suggests we could implement record equality by converting the
records to hash indices and then comparing those.

                Vern
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to