Re: TArray

Rene Brun (Rene.Brun@cern.ch)
Thu, 26 Mar 1998 08:40:03 +0100


Patrice Lebrun wrote:
>
> Hello Rooters,
>
> A very simple question:
>
> Why TArray class does not inherit from TObject class ?
>

A few Root classes are not derived from TObject. These are
essentially:
- the TString class
- the TArray.. classes
- the TAtt... attribute classes

Deriving from TObject implies a small overhead of 8 bytes.
We intially thought that this overhead was not affordable for TArrays.
This was may be a mistake.
On the same chapter, we also have requests to have some (or all)
collection classes derived from TNamed and not only from TObject.
This change could be totally transparent.
Input is welcome.

Rene Brun