THashTable and operator()(Text_t*)

Nikolay I. Root (nroot@inp.nsk.su)
Tue, 30 Jun 1998 07:05:18 +0700 (NSD)


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