Re: [fpc-devel] bug 3626

2005-02-02 Thread Vincent Snijders
[EMAIL PROTECTED] wrote: bug 3626 is marked as Not a bug. This is wrong! The comment is also wrong! Why? 9 is a valid int64... Vincent. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] bug 3626

2005-02-02 Thread Florian Klaempfl
[EMAIL PROTECTED] wrote: int64 integer ??? The compiler reports a range check error depending on $R as warning or error. So where is the problem? What do you expect to happen? Vincent Snijders wrote: [EMAIL PROTECTED] wrote: bug 3626 is marked as Not a bug. This is wrong! The comment is also

Re: [fpc-devel] bug 3626

2005-02-02 Thread Jonas Maebe
On 2 feb 2005, at 16:43, [EMAIL PROTECTED] wrote: int64 integer ??? They are assignment-compatible. If the value doesn't fit in the range of the destination type, you get either a warning (if range checking is off) or an error (if range checking is on). Jonas

Re: [fpc-devel] bug 3626

2005-02-02 Thread rstar
I expect a out of bounds error messeage. Independent from $R. Florian Klaempfl wrote: [EMAIL PROTECTED] wrote: int64 integer ??? The compiler reports a range check error depending on $R as warning or error. So where is the problem? What do you expect to happen? Vincent Snijders wrote: [EMAIL

RE: [fpc-devel] bug 3626

2005-02-02 Thread peter green
[EMAIL PROTECTED] wrote: int64 integer ??? The compiler reports a range check error depending on $R as warning or error. So where is the problem? What do you expect to happen? im not going to argue whether this is right or wrong but in delphi at least $R only affects run time range

Re: [fpc-devel] bug 3626

2005-02-02 Thread Konstantin Münning
[EMAIL PROTECTED] wrote: int64 integer ??? The compiler reports a range check error depending on $R as warning or error. So where is the problem? What do you expect to happen? If I got it right the question is about a comparison statement of two integer numbers. IMHO from the logocal view this

Re: [fpc-devel] bug 3626

2005-02-02 Thread rstar
can agree. peter green wrote: im not going to argue whether this is right or wrong but in delphi at least $R only affects run time range checking. In delphi that code will give an error (constant expression violates subrange bounds) even with range checking off.

Re: [fpc-devel] bug 3626

2005-02-02 Thread Peter Vreman
im not going to argue whether this is right or wrong but in delphi at least $R only affects run time range checking. In delphi that code will give an error (constant expression violates subrange bounds) even with range checking off. I think this is a special case with for-loops. Delphi also