[Bro-Dev] [Proposal] Language extensions for better Broker support

Robin Sommer robin at icir.org
Wed Dec 14 07:11:07 PST 2016

On Wed, Dec 14, 2016 at 14:44 +0000, you wrote:

> Would that mean you wouldn't be able to return a bool and check for
> errors at the same time?

No, it would always return an opaque ("opaque of Broker::Data" in this
case). If you used that in a boolean context, it would evaluate to the
error flag. If you wanted to get the actual value out of it, you'd
cast it accordingly with the new cast operator; and that includes
casting to "bool".


Robin Sommer * ICSI/LBNL * robin at icir.org * www.icir.org/robin

More information about the bro-dev mailing list