Author: Russell Reagan
Date: 21:37:30 06/09/02
Go up one level in this thread
On June 09, 2002 at 22:46:36, Pham Hong Nguyen wrote: >If you use structure instead of class for Move, it will become real C and you >can avoid that problem. > >BTW, when searching, I try to "fix" classes as much as possible because any >dynamic things will cost too much. For example, if I can, I will declare Move >array as the following: > >static Move moves[512]; When you say "fix" things, do you mean that you "limit" them as much as possible, so that the compiler knows that the scope of the variables is less, and can therefore do more optimizing? Also, if I understand your adding "static", then that would mean that all instances of class MoveList would share the same data, right? I don't think that is the desired effect, but perhaps I am wrong. Russell
This page took 0 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.