Re: [dev] Local vs global variables

From: Anselm R Garbe <anselm_AT_garbe.us>
Date: Fri, 6 Nov 2009 19:19:30 +0000

2009/11/6 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 ?

Is he sure he never uses global variables? What about our old friend errno?

Kind regards,
Anselm
Received on Fri Nov 06 2009 - 19:19:30 UTC

This archive was generated by hypermail 2.2.0 : Fri Nov 06 2009 - 19:24:02 UTC