From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Beno=EEt?= Rouits Subject: Re: need non-classwide sticky variable for a member function of a class Date: Sat, 23 Jun 2007 20:33:53 +0200 Message-ID: <1182623633.22133.1.camel@chimay> References: <467B813F.4060408@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <467B813F.4060408@gmail.com> Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="utf-8" To: Shriramana Sharma Cc: Linux C Programming List Le vendredi 22 juin 2007 =C3=A0 13:28 +0530, Shriramana Sharma a =C3=A9= crit : > To my mind, there are three meanings to the keyword static: >=20 > 1. local visibility (vars and funcs) > 2. classwide commonness (vars and funcs) > 3. sticky nature (vars only) to hold values between function calls >=20 > 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. >=20 > Your comments invited. >=20 > Shriramana Sharma.=20 - To unsubscribe from this list: send the line "unsubscribe linux-c-progr= amming" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html