Hi Andy, this has been fixed in the latest version 4.00/03. Cheers, Fons. On Mon, 2004-03-29 at 14:06, Andy Buckley wrote: > Hi all, > > I've recently noticed that if I invoke ROOT with a specified file to > read and that file has a bad form for a variable name (starts with a > number or contains a C++ operator character) then the interpreter will > throw an error when it tries to make a variable of the same name as > below: > > > buckley@pcem:~/davinci/job$ root DVNtuplesForBu2KsPi-signal.root > root [0] > Attaching file DVNtuplesForBu2KsPi-signal.root... > Error: Variable name has bad character 'DVNtuplesForBu2KsPi-signal' > FILE:(tmpfile) LINE:1 > *** Interpreter error recovered *** > root [1] > > > Would it be possible to parse CLI-specified files for variable-compliant > names and substitute e.g. an underscore when building the variable name? > There may be repercussions of this idea, but since "bad" filenames won't > work at all with the current behaviour, I don't imagine this change > would hurt existing scripts. > > > Thanks for listening :-) > > Andy -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET