TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRIS DOWNS
from: NEIL HELLER
date: 1997-03-18 18:58:00
subject: STATIC? SAY WHAT?

NH> Could someone please enlighten me (and tell me why it would be
NH> preferable to use that form in any circumstance).
NH> static int CClassName::MethodName( int SomeVar )
 
CD> It means there is no "this pointer" for the function.  So you can
CD> call it without first constructing a CClassName object.
 
CD> Isn't it lovely the way that 'static' has been overloaded (and
CD> overloaded and overloaded)??
That answers the first part of my question.  Thank you.
Are there any times when the function would need to be called prior to
its instantiation as an object?  For that matter, can you think of a
viable necessity for a static function?
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.