Dear all!
The string
TIter it(NULL); it();
produces:
*** Break *** Segmentation violation
May be it will be good to do some internal checks in TIterator?
I think it is better to have
void better(TList *l)
{
TIter it(l);
while( TObject *o=it() )
.....
}
than
void worse(TList *l)
{
if( NULL!=l )
{
TIter it(l);
while( TObject *o=it() )
.....
}
}
better(NULL);
worse (NULL);
Alexander Zvyagin.