[fpc-pascal]Re: for loop questions

memsom at interalpha.co.uk memsom at interalpha.co.uk
Mon Dec 9 10:59:01 CET 2002


> Matt Emson wrote:
> > Really? Think again... ;)
> > 
> > 
> > No, that *is* a bug.
> 
> I did only a quick investigation and for me the crash isn't for loop related.

My email wasn't do do with FPC so much as it was to do with how:

for i := 0 to -1 do ;

is interpreted by FPC. The loop should never happen. If it does, this is not 
correct in Borland or Delphi Pascal.

"bug" was used to describe the implied failure, not a bug in the compiler. 
After all, it could have been that the RTL saw "TList.Count" being unsigned as 
an essential necessity.However, this is not consistent with Borland's 
implementation, (at least within Delphi), which, after all, is the genus of 
the 'T' prefixed classes.

Matt


---------------------------------------------
This message was sent using Mistral WebMail.
http://www.mistral.co.uk/






More information about the fpc-pascal mailing list