this is a very stupid problem I incurred in today, which deals with variable declaration and initialization syntax.
In C++ you can declare a set of double variables and at the same time initialize them like this:
if you type the same thing in ROOT you get some warning messages
root [ ] double a=b=c=d=0;
Warning: Automatic variable d is allocated (tmpfile):1:
Warning: Automatic variable c is allocated (tmpfile):1:
Warning: Automatic variable b is allocated (tmpfile):1:
and the result is that only ‘a’ has been declared as double, meanwhile ‘b’, ‘c’ and ‘d’ are integers. I don’t think that’s what one wants to happen, isn’t it?