Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-12

Re: Re: for loop questions

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author
Show quoted text 7 lines
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/