Hi Yannick, I have modified TFormula to support the case you are reporting. The fix is in CVS. Rene Brun On Sat, 13 Jan 2001, Patois Yannick wrote: > Hi, > > On my version (*Version 3.00/01 7 January 2001*, linux-ix86), the > following script generates an error (and to me it shouldnt) : > > >>>> bug.C > { > TFormula *x2 = new TFormula("x2","x**2"); > TFormula *x2_2 = new TFormula("x2_2","x2"); > } > >>>> > > root [30] .x bug.C > > *ERROR 5 : > Invalid Syntax "*" > > Changing '**' to '^' solve the problem, but in the doc, both conventions > are mentionned to be valid. > > Am I right to think that this is a bug ? > > My guess: > The 'substitution of some operators to C++ styles' done by Compile() is > not done for user defined functions that are only processed through the > Analyse() method that fails on '**' (it expect Compile() to already > have changed '**' to '^'). > > Yannick > > > > > >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:33 MET