Strangely,my 240 compiler do compile your sample code.
My enviroment:windows xp + fpc v2.4.0 + x86.
On Tue, Jan 19, 2010 at 8:08 PM, Carsten Bager wrote:
>
> I have a problem with the new 240 compiler.
> I get errors when calling functions in the sysutils unit.
> I have tested the 251 compiler,
conclusion,free pascal do provide mechanism to detect
type-catagory-inside check,even thought IMHO,it's not perfect.
jcyang.
On Fri, Jan 15, 2010 at 1:02 AM, Jonas Maebe wrote:
>
> On 14 Jan 2010, at 16:30, Jichao Yang wrote:
>
> int64Val := 2147483648; { 2^32 }
>> intVa
int64Val := 2147483648; { 2^32 }
intVal := int64Val; { does not trigger any warnings }
Now the intVal should be 0 which is not what I wanted.
my platform: v2.4.0[2009/12/18] for i386 under windows.
regards.
jcyang.
___
fpc-pascal maillist - fpc-pasca
Hi all,I have one question about the free pascal programming language: why
limit string constant to 255?
write('a x 256');
would produce 'Error: Constant string can't be longer than 255
chars',with fpc 2.4.0 default/objfpc/delphi/tp model.
But gnu pascal would compile this well.
On the other side