Re: [dev] Local vs global variables

From: markus schnalke <meillo_AT_marmaro.de>
Date: Fri, 06 Nov 2009 18:49:25 +0100

[2009-11-06 18:34] QUINTIN Guillaume <coincoin169g_AT_gmail.com>
>
> Someone just told me that, when writing C code, one should NOT use ANY
> global variables. He did not tell me to use global variables as few as
> possible, he did tell me to use ABSOLUTELY NO global variables in any
> kind of C code (single program, library, OS kernel, any kind there is
> ...)
>
> What do you think about that ?

Was that someone Niklaus Wirth? ... oh, I forgot: He would not
recommend any C at all. ;-)

It's like with everything: It depends on the case.

meillo
Received on Fri Nov 06 2009 - 17:49:25 UTC

This archive was generated by hypermail 2.2.0 : Fri Nov 06 2009 - 18:00:03 UTC