CINT: automatic var allocation and var. removal

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Fri May 07 1999 - 16:14:08 MEST


Masa,

Masaharu Goto wrote:
> There is no such capability right now. But it is easy to modify the
> behavior for the automatic variable. I realise this feature may create
> more problem than a benefit. I can make it an error.

I'm not sure removing the automatic allocation is a good point. The
benefit is clear : less things to write for solving quick problems. If
you remove that, people will probably feel cint a little bit more
difficult to use. In fact I'm not sure.

One question, how, or is it possible to remove a variable (not a
pointer) from cint. Say, I use v as an int, and see i made a small
mistake and would like to declare it a long. Or I have declared i as an
int in one macro, but i is declared as a long in another. I can imagine
problems if the replacement is made automatically. But perhaps is there
a way to force the removal of a variable (especially global) by calling
a cint function. This way, the user would have to assess that he/she
really wants to remove this variable. For now, I have to change all the
occurences in one of the scripts (may be tiring) or restart root.

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:43:32 MET