Minor evaluation issue

From: George Heintzelman (gah@bnl.gov)
Date: Tue Oct 05 1999 - 22:23:55 MEST


Hi,

When working interactively, I discovered the very nice feature that you 
don't have to type a variable if defining it via an equality to 
something with a well defined type. However, it doesn't work perfectly:

peds = string1->GetPedestalMean()
(class TArrayF*)0x0
root [12] peds
(class TArrayF*)0x8a90e98

It doesn't matter what these variables really are, just that string1 is 
a pointer to a user type, and GetPedestalMean() is a method returning a 
pointer to a TArrayF. When the expression is first evaluated, it prints 
that the result is 0, making me think the function didn't work; but 
when the variable alone is reevaluated, it proves to have been there.

Furthermore, if I *DO* declare the variable, ROOT doesn't print the 
evaluation:

root [13] TArrayF *peds2 = string1->GetPedestalMean()
root [14]

Could these two things be fixed as a convenience to the interactive 
user?

George Heintzelman
gah@bnl.gov



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