home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!cs.uiuc.edu!sparc0b!pjl
- From: pjl@cs.uiuc.edu (Paul Lucas)
- Subject: Re: Static vars in member functions
- Message-ID: <BzF8Cs.25x@cs.uiuc.edu>
- Sender: news@cs.uiuc.edu
- Organization: University of Illinois at Urbana-Champaign
- References: <1992Dec13.185540.20212@math.ufl.edu>
- Date: Thu, 17 Dec 1992 20:46:04 GMT
- Lines: 27
-
- In <1992Dec13.185540.20212@math.ufl.edu> x9999bvj@maple.circa.ufl.edu writes:
-
-
- >When calling a function of a class with a static variable declared in it,
- >what is the standardized behaviour for that variable?
-
- *****> The same as for a non-member-function.
-
- >E.g.
-
- >class Foo
- >{
- > public:
- > void Blah( void );
- >};
-
- >void Foo::Blah( void )
- >{
- >static int i;
-
- > i++;
- >};
-
- --
- - Paul J. Lucas University of Illinois
- AT&T Bell Laboratories at Urbana-Champaign
- Naperville, IL pjl@cs.uiuc.edu
-