Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about errors when I change my C code to C++

Author: Uri Blass

Date: 08:51:15 02/25/03

Go up one level in this thread


On February 25, 2003 at 11:42:24, Pat King wrote:

>On February 24, 2003 at 18:00:25, Uri Blass wrote:
>
>> (long story with easy ending)
>>
>>I see that I did not include it in the right order and now I have no problem.
>>
>>Uri
>
>I would submit that being dependent on include order, though perhaps not a bug,
>is bad practice. All my includes are in alphabetical order. While this doesn't
>preclude such dependencies, enforcing an arbitrary order at least ensures they
>are repeatable :)
>
>Pat

data.h is varaibles when defs.h is definition.
I learned it from tscp.

some varaibles are dependent on definition so I need to include defs.h first

Maybe it is better to have only one file for them but when I look in source code
of Crafty I see that it has a lot of files in the project.

I do not understand what is the advantage of having a lot of files on the
project.

Uri



This page took 0.01 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.