RE: [ROOT] static member in interactive session

From: Philippe Canal (pcanal@fnal.gov)
Date: Thu Oct 28 2004 - 21:17:45 MEST


Hi,

There is not information to know what's going on.  In particular is A::M
inlined or not?
Please send a example with enough information to reproduce the problem.

Cheers,
Philippe. 

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]
On Behalf Of ribordy
Sent: Thursday, October 28, 2004 5:49 AM
To: roottalk@cern.ch
Subject: [ROOT] static member in interactive session

Hi rooters,
I'm not sure what's wrong with that:
I have a class A with a public bool static member f. I generate a dictionary
and use it in an interactive session. There is a method M() printing the
value of f.

In the interactive session, I simply do:

A a; a.M(); --> print f=true (that's how I initialized it) a.f=false; a.M();
--> print f=true (shouldn't it be false ?)

of course, this problem disappears when f is not declared as a static
member.

thanks,
	Mathieu



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET