Hi Frank,
On Mon, May 29, 2006 at 15:33:48 +0200, Frank Schönheit wrote:
> What about
>
> struct ApprovalOrVeto_OrAnyBetterName
> {
> boolean IsVeto;
> string Veto;
> any Reason;
> XInterface Context;
> };
That struct would have to be created, though with empty members, even in
the all-good-no-veto case. Depending on the scenario this may cause
significant unnecessary overhead with mass objects. Shouldn't we better
have a simple boolean return instead and explicitly act on a veto?
if (!listener->approve())
{
Veto_OrAnyBetterName aReason = listener->getVetoReason();
...
}
Eike
--
OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD: 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]