Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Why idempotent?

Author: Dann Corbit

Date: 16:01:11 02/14/00

Go up one level in this thread


On February 14, 2000 at 18:03:44, Tom Kerrigan wrote:

>While this may increase the speed of TSCP, I think it's sort of a bizarre
>programming practice. If I was new to programming (or C), it would probably
>confuse me. As I've stated before, the goal of TSCP is to be simple. Not good or
>fast.
>
>Sorry guys. =(

You don't have to use my weird include file trick tscp.c

On the other hand, making include files idempotent is a standard practice and
part of good programming.  Look at your library header files and you will find
that all of them have this simple protection.

Don't use leading underscores like library headers tend to, however.  That
namespace belongs to the compiler and user programs should *not* use that
convention.



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.