Computer Chess Club Archives


Search

Terms

Messages

Subject: Question about static vs global variables

Author: Derek Mauro

Date: 13:56:19 10/26/01


As far as I can tell, static and global variables seem to be equally efficient,
the only difference being that statics have a limited scope.  Am I right, or is
one actually more efficient than the other?  Is there any advantage to passing
around a static or a global?  I've always read that globals should be avoided.
Is there any performance reason why?

Thanks for your help in advance.



This page took 0.03 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.