Re: need non-classwide sticky variable for a member function of a class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le vendredi 22 juin 2007 à 13:28 +0530, Shriramana Sharma a écrit :
> To my mind, there are three meanings to the keyword static:
> 
> 1. local visibility (vars and funcs)
> 2. classwide commonness (vars and funcs)
> 3. sticky nature (vars only) to hold values between function calls
> 
> Here the second and third meanings are mixed up -- that makes the
> static keyword quite ambiguous, don't you think?
I agree, "static" has two meanings among one for a local variable.
> 
> Your comments invited.
> 
> Shriramana Sharma. 
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux