Ok, Rene's answer states : this IS a mistake : you did it ! 2dt is a legal var. name in C++ and CINT just allocates a default variable... Thanks Rene :-) Damir Damir Buskulic wrote: > > Hi, > I'm, among other things, using ROOT for our students to learn some basic > numerical analysis methods. > Of course, these students often do stupid errors (that never happens to > us, of course...) and this is a good benchmarking for CINT/ROOT > stability. > > My question is : why doesn't CINT catch this obvious error : > > { > float t=1.; > float dt=0.3; > t=t-2dt; // missing * > } > > Damir > -- > ===================================================================== > | Damir Buskulic | Universite de Savoie/LAPP | > | | Chemin de Bellevue, B.P. 110 | > | Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex | > | e-mail: buskulic@lapp.in2p3.fr | FRANCE | > ===================================================================== > mailto:buskulic@lapp.in2p3.fr -- ===================================================================== | Damir Buskulic | Universite de Savoie/LAPP | | | Chemin de Bellevue, B.P. 110 | | Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex | | e-mail: buskulic@lapp.in2p3.fr | FRANCE | ===================================================================== mailto:buskulic@lapp.in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET