|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#13
|
||||
|
||||
|
Re: Why Static Variables?
Out of curiosity, is the only difference between a global variable accessed by the function and a static variable created and accessed by the same function scope? It seems that since both the static variable and the global variable are stored in standard RAM, they would have the same speed, and static variables could simply not be accessed by other functions as globals could. (This isn't to imply that statics are useless, as they would avoid many name conflicts, although I tend to name all of my variables exclusively anyway. I'm only trying to clarify that my grasp of their use is correct).
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Static Cling?? | orelinde | Electrical | 17 | 27-02-2006 17:33 |
| Static Variables | amateurrobotguy | Programming | 8 | 04-03-2005 00:40 |
| Static Electricity | JeffO | Championship Event | 5 | 19-04-2004 11:04 |
| Static on the HDPE | Al Skierkiewicz | Technical Discussion | 60 | 12-03-2003 17:52 |
| Static Electricity | archiver | 2001 | 12 | 24-06-2002 00:34 |