Abdelrazak Younes wrote:
>Angus Leeming wrote:
>> In src/frontends/gtk/WorkAreaFactory.C you
>> introduce a new static global variable.

> By the way, I have always believed that, in C++, the
> keyword static in  this case is to say that this
> variable is _not_ global but reserved to  this file.
> This is different for a static variable inside a
> function. So  If I am right I am not polluting the
> global namespace by doing that. Am  I wrong there?

What I meant by "global" was that the order of instantiation of variables that 
lie outside the normal program flow is undefined. As such, they're generally 
frowned on, especially in multi-threaded code.

Anyway, it's a small point and probably irrelevant also. Let's drop it.

Angus


Reply via email to