Dear rooters, The following macro fails. Is this a limitation in CINT ?? ---- { const Int_t nSec=6; const Int_t nPads=10; TTRAP *** trap; trap = new TTRAP** [nSec]; for (Int_t i=0;i<nSec;i++){ trap[i] = new TTRAP* [nPads]; } for (Int_t k=0;k<nSec;k++){ for (Int_t i=0;i<nPads;i++){ trap[k][i] = new TTRAP("TRAP","TRAP","void",190,0,0,60,40+i,90,15+k,120,80,180,15); } } } ---- The error message is: (...) Error: Can't call TTRAP::operator[]((int)1) in current scope FILE:test2.C LINE:12 (...) Best regards Thomas -- Thomas Eberl Phone: (+49 89) 289 1 2425 Physik-Department E12, Technische Universitaet Muenchen James-Franck-Strasse *** D-85748 Garching b. Muenchen Email: Thomas.Eberl@physik.tu-muenchen.de
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:22 MET