THashTable and operator()(Text_t*)

From: Nikolay I. Root (nroot@inp.nsk.su)
Date: Tue Jun 30 1998 - 02:05:18 MEST


Dear ROOT team.

When I learn the THashTable (and TObjArray) interface,
i was a little bit suprising, that they havn't

TObject* operator()(Text_t *n) { return FindObject(n); };

Why??? This is a 'basic' access to hashes !

Ok, I'm mostly the 'perl' programer, but I assume that
many other people also prefer more simple notation 

h("name")  to so verbose  h.FindObject("name").

Well, I can 'subclass' and define this operator (what I do),
but may be it's better to include this functionality
into ROOT ? 

Can I hope to see this operator in next release ?
(it so simple, I think).

PS: The same reason was for TMyString class - I just to prefer
s->Data() to s->String()->Data().

Sincerely Yours,

                               Nikolay Root
                               BINP, Novosibirsk
                               email : nroot@inp.nsk.su



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET