Hi Andy,
I see that my mail had some positive (and expected effect).
Fons (original author of the TCut operators) has now fully reimplemented
the ! operator to avoid the original side-effect.
His implementation (now in our dev version) is slightly different than
yours,
in addition the operators must also be known from CINT.
As a result, I have now a commitment to offer two bottles of champagne
instead of one. I will contact you personally to make sure
that what I promised becomes concrete.
Rene Brun
Andrei Salnikov wrote:
>
> Hi Rene!
>
> Your idea is indeed encouraging. Maybe this will work:
>
> TCut TCut::operator!() const
> {
> return TCut( "NOT"+this->fName, "!(" + this->fTitle + ")" );
> }
>
> Note that it returns TCut instead of TCut& and has a 'const' added. I'm
> ignorant about the role of "name" parameter, so I simply put "NOT"
> prefix there. Will that work?
>
> Cheers, Andy.
>
> Rene Brun wrote:
> >
> > Hi Andrei,
> > We are unfortunatly aware of this problem that prevents a real use
> > of the TCut class. The operator ! changes the cut.
> > If you implement the cut as intended, I will offer you
> > a bottle of champagne.
> >
> > Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET