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
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET