Author: Miguel A. Ballicora
Date: 10:44:24 04/19/02
Go up one level in this thread
On April 19, 2002 at 13:19:12, Dann Corbit wrote:
>On April 19, 2002 at 05:38:16, Gian-Carlo Pascutto wrote:
>
>>On April 19, 2002 at 03:53:35, Dann Corbit wrote:
>>> if (pawn_rank[LIGHT][f] == 6); /* pawn hasn't moved */
>>> ^
>>>eval.c(335) : Warning 7: possible extraneous ';'
>>> if (pawn_rank[DARK][f] == 1);
>>> ^
>>>eval.c(382) : Warning 7: possible extraneous ';'
>>
>>Is TSCP buggy?
>>
>>I think this is a very valuable warning, too bad neither
>>MSVC, Intel C or gcc don't have it.
>
>Nothing wrong with TSCP. If you look at the code in place, it is obvious.
>I tend to do this:
> if (pawn_rank[DARK][f] == 1) {;} /* I meant to do that. */
>For those bizarre cases where you want the if to do nothing.
Ok, now I understand the idea. It is in a place where there are a bunch of "if"
most of them do something and few do nothing but they are kept for
sake of "completeness" (it could be edited later to introduce "something").
Almost like a comment right?
Regards,
Miguel
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.