Frank Schönheit - Sun Microsystems Germany wrote:
Hi Stephan,

In many languages and language implementations, exceptions are considered a mechanism for error recovery and using them incurs noticeable performance overhead. Therefore, I think it is useful to limit exceptions to error recovery in UNO, too.

Hmm. I take this as a VetoException to my original design ...

So if I want to transport more information than just a boolean
"accepted/vetoed" flag from the listeners to the broadcaster, what would
be the best way?

A complex return type? A complex type as output parameter, with a
boolean return type?

Out-parameters are frowned upon in UNO circles (because they have awkward to use mappings in languages like Java), so the best solution seems a complex return type---com.sun.star.beans.Optional might be handy here.

Thanks & Ciao
Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to