Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Use of objects and associated performance hit?

Author: Tom Kerrigan

Date: 01:02:44 01/01/00

Go up one level in this thread


On December 31, 1999 at 23:07:26, Alexander Kure wrote:
>>Exactly. But I also want to access the member variables and functions of the
>>board as if they were part of the engine. (Otherwise everything looks like a big
>>mess.) The only way I can think of to accomplish this is to make the engine
>>class a derivative of the board class.
>Using Friendship would be more to the point.

Although I am half drunk and I have no reference books at hand, I recall that
friendship only allows certain classes to access other classes' private stuff.
This does me no good, as none of my classes have private stuff anyway.

Of course, I could be totally wrong. The last time I had to deal with object
oriented stuff was in an algorithms class two years ago, and I din't like it at
all. I would prefer using pure C, but it seems that using a few C++ features
might make my code much easier to read.

-Tom



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.