forgetting declaration

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Fri Oct 16 1998 - 12:18:41 MEST


Hi again,

One other problem :

If somebody makes an error by not declaring a variable :

root [0] a=3              
Warning: Undeclared data member a FILE:/tmp/aaaaapEma LINE:1
(int)3
*** Interpreter error recovered ***

seems to be ok, (int)3 seems to indicate that the interpreter have still
taken a for an int by default. But if one tries to see what is this var
:

root[1] a

nothing ! no indication of type or value. Printf doesn't work

Then, if one wants to reuse the var. a :

root [1] int a=3
Error: a already declared as different type FILE:/tmp/baaaapEma LINE:1
*** Interpreter error recovered ***

So, is a defined or not ?

It seems to me that this question was asked a few months before and was
said to be cleared. This is still here... Nothing really important but
in a demo, it looks bad.

Cheers

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



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