RE:Re: ROOT Bug Report

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Sat Aug 08 1998 - 13:36:00 MEST


Fons,

I added the error message for undefined operators.
delete 0 is also implemented. Please test these when I copy new version.

Masaharu Goto

--------------------------------------------------------
Hi Andy,

  for efficiency reasons we don't have 
     operator +(class TVector, class TVector).
The problem is that CINT currently does not warn for this.

You should do:
c = a;
c += b;

Cheers, Fons.


andy strong wrote:
> 
> ** Electronic Bug Report Form **
> 
> Name:           andy strong
> E-mail address: aws@mpe-garching.mpg.de
> ROOT version:   2.00/08
> Platform:       Sun
> OS:             Solaris
> 
> Bug severity:   normal
> Repro:          always
> 
> BUG DESCRIPTION:
> I am starting to use ROOT in the context of the INTEGRAL
> ISDC project (I am an ISDC coinvestigator).
> This is just a simple question. I started to look at
> TVector, and cannot understand why the following
> 
> TVector a(20),b(20),c(20);
> a=1.;
> b=2. ;
> c=0.;
> 
> c=a+b;
> 
>  cout<<a(1)<<endl;
>  cout<<b(1)<<endl;
>  cout<<c(1)<<endl;
> 
> yields
> 1
> 2
> 0
> rather than
> 1
> 2
> 3
> 
> In other words, there is something basic I do not understand
> about how TVector works.
> Can you help?
> 
> Best wishes
> Andy Strong, Max-Planck
> Institut fuer extraterrestrische Physik, Garching, Germany
> 
> OTHER COMMENTS:



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