[ROOT] static member in interactive session

From: ribordy (Mathieu.Ribordy@umh.ac.be)
Date: Thu Oct 28 2004 - 12:48:53 MEST


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