On Mon, Jun 05, 2006 at 06:51:52PM +0200, Lars Gullik Bjønnes wrote:
> Abdelrazak Younes <[EMAIL PROTECTED]> writes:
> 
> | 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?
> 
> We don't uusually use static in filescope, we use anon namespaces
> instead.

'static' hides better, though...

[No, I am not recommending changing policy here]

Andre'

Reply via email to