On Tue, Jan 03, 2017 at 10:21 +0100, you wrote:
> > [result, value] = Broker::lookup(h, 42) # Returns [Broker::Result, > > opaque of Broker::Data] > > if ( result == Broker::SUCCESS ) ... > I would prefer this solution, as it feels more natural coming from other > languages like python. Introducing new keywords/magic functions like > status() Actually it's the opposite: status() wouldn't need anything new, that's part of the appeal there. It would just be a bif (although probably called Broker::status()) that takes the Broker opaque and query its most recent state. Robin -- Robin Sommer * ICSI/LBNL * [email protected] * www.icir.org/robin _______________________________________________ bro-dev mailing list [email protected] http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev
