Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How to build the *weakest* program

Author: Daniel Clausen

Date: 00:49:18 08/21/02

Go up one level in this thread


On August 20, 2002 at 23:16:03, Russell Reagan wrote:

[snip]

>The levels of truth:
>
>3. What you read in a book

Not if it's in a book which _defines_ what ANSI-C is. Definitions can't be
wrong. That can be useless probably, but not wrong.


>and the highest level of truth is...
>
>1. What the thing does when you run it

I would have put that almost at the other end of the scale, at least when it
concerns programming in C. A program which compiles w/o errors and links,
_always_ does _something_ specific, under this platform, at that day, at that
time, with this memory layout, etc. There are many (?) things, which are either
implementation-defined or undefined at all in ANSI-C. The "highest level of
truth" won't catch these. (of course, most people couldn't care less whether the
stuff runs on the neighbours CPU as well, but that's another issue)

Sargon



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.