Re: [ROOT] virtual SetBit

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Jul 31 2002 - 16:46:15 MEST


I would like to avoid opening this hole where people can circumvent the
kBitMask and could mess with the system reserved bits.

Cheers, Fons.


On Wed, 2002-07-31 at 12:22, Thomas Bretz wrote:
> Hi,
> 
> why are the BitManipulators in TObject not virtual? Like the kBitMask it
> might be usefull to overwrite this function with an own one which
> doesn't allow to set or reset a user defined bit (let's say I'm useing
> BIT(14) to flag some state which I don't want to be changed by the user,
> I could simply ignore the bit when the user calls SetBit)
> 
> Best regards,
> Thomas.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET