TList and TIter

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Mon Feb 16 1998 - 05:06:25 MET


	Hello, 

your problem is reproducible and seems to be a (ROOT)CINT problem. 
May be Masaharu could comment on it.
For the time being you may use the equivalent construct which for some 
reason works just fine:

root [5] TList* list = new TList();
root [6] list->Add(new TObjString("a"));
root [7] TIter i(list)                  
root [8] list->Print()
TObjString = a
					Regards, Pasha.
--------------------------------------------------------------------------------
Yves Schutz writes:
 > Hello rooters,
 > 
 > Can somebody explain while the trivial example below gives an error :
 > 
 > root [7] TList l;
 > root [8] l.Add(new TObjString("a"))
 > root [9] l.Add(new TObjString("b"))
 > root [10] l.Add(new TObjString("c"))
 > root [11] l.Print()
 > TObjString = a
 > TObjString = b
 > TObjString = c
 > root [12] TIter next(&l)
 > Limitation: Can not define body of function in tempfile FILE:/tmp/18444oaa LINE:1
 > root [13]         
 > 
 > thanks ... Yves
 > -- 
 > Yves SCHUTZ  GANIL (IN2P3 - CNRS) collaboration TAPS http://ganp03.in2p3.fr
 > GANIL                 Telephone: (33) 2 31 45 47 01    
 > BP 5027               Fax      : (33) 2 31 45 46 65
 > F-14076 Caen          e-mail   : mailto:SCHUTZ@IN2P3.FR



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