unexpected behavior of TCut::operator!()

From: Andrei Salnikov (salnikov@inp.nsk.su)
Date: Thu Feb 17 2000 - 05:23:28 MET


  Hi all,

  I observe something which surprises me a bit:

root [166] TCut cut1 = "X>0"
root [167] TCut cut2 = "Y<0"
root [168] TCut cut3 = !cut1 && cut2
root [169] cut1.Print() 
OBJ: TCut       CUT     !(X>0)

  obviosly, '!cut1' changes the value of cut1 itself. Is it supposed to
be like that? My expectations for such constructs would be not to change
the value of operand.

  Cheers, Andy.



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET