[ROOT] new operator

From: Thomas Bretz (tbretz@uni-sw.gwdg.de)
Date: Wed Mar 21 2001 - 11:00:43 MET


Hello all,

I found in the description of TClonesArray the following statement about
the index-operator:

This operator should not be used for
lefthand side assignments, like a[2] = xxx. Only like,
new (a[2]) myClass, or xxx = a[2].

Whats the differents between
a[2] = new myClass and
new (a[2] myClass?

Thanks,
Thomas.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET