Hi Dariusz,
Use standard C++ like:
int kuku;
void create() {
kuku=17;
}
void use() {
cout <<kuku<<endl;
}
Rene Brun
Dariusz Miskowiec wrote:
>
> Dear Rootists,
>
> Is there a way of creating a global variable within a named
> macro? I know that I can create a histogram in a named macro
> and then find it in the current directory, but how about other
> objects? I am thinking about something like
>
> /****************************/
> void create() {
> int kuku = 17;
> }
> void use() {
> cout << kuku << endl;
> }
> /****************************/
>
> Best regards and many thanks
> Dariusz Miskowiec
>
> --
> +-------------------------------------------------------------------+
> + Dariusz Miskowiec E-mail: D.Miskowiec@gsi.de +
> + GSI, Planckstr. 1 Phone: 0049-6159-712-133 +
> + D-64291 Darmstadt Fax: 0049-6159-712-989 +
> +-------------------------------------------------------------------+
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:37 MET