Mail Archives: djgpp/2004/08/02/02:16:07

X-Authentication-Warning: mail set sender to djgpp-bounces using -f
Message-ID: <>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strange error
References: <20040723023556 DOT 15872 DOT 00001561 AT mb-m21 DOT aol DOT com> <20040723032432 DOT 19192 DOT 00002048 AT mb-m06 DOT aol DOT com>
Lines: 28
Date: Mon, 02 Aug 2004 06:02:38 GMT
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: 1091426558 (Mon, 02 Aug 2004 06:02:38 GMT)
NNTP-Posting-Date: Mon, 02 Aug 2004 06:02:38 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sterten wrote:

>>> m55:r--;if(R[r]!=1)goto m55;
>> I think this is the problem. r might become smaller 0.
> .. and then anything can happen depending on what just happens to
> stand at that memory location.
> But this is a weakness of C when compared to
> e.g. Basic, which issues an error when an index is out of the
> predefined range thus helping to debug the program.
> I understand that checking the ranges might
> slowdown the program, but IMO there should  be at least  the option
> for a compiler switch to generate a slow .exe which does this.

There is such a switch.  I forget what it is.  It's in the manual.

You should not strip attributions for material you quote.

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019