CINT and TClonesArray::operator []

Pasha Murat (murat@cdfsga.fnal.gov)
Sun, 22 Jun 1997 22:26:19 GMT


Hi,

it looks like there is a problem with indexing in TClonesArray (however I can't
exclude that I'm missing something very basic):
--------------------------------------------------------------------------------
/cdf/upgrade/tracking/murat/psi/test>root
No default font loaded
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 1.01/06 17 June 1997 *
* Development version *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************

CINT/ROOT C/C++ Interpreter version 5.13.11, May 25 1997
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] TClonesArray* a = new TClonesArray("Int_t",100);
root [1] new((*a)[0]) Int_t(10);
Warning: new((*a)[0]) Missing ';' FILE:/var/tmp/baaa0066a LINE:1
root [2] .p (*a)[0]
Error: Pointer to function 0x10382bb8 can not access from interpreter(2) FILE: LINE:0
Error: G__getvariable: expression [0] FILE: LINE:0
*** Interpreter error recovered ***
--------------------------------------------------------------------------------

Am I missing something?

Thanks, Pasha