IHEP, Protvino, Russia, 23-FEB-1998 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.
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET