[fpc-pascal]Problem with CASE statement
Lubomir.Cabla at cssz.cz
Lubomir.Cabla at cssz.cz
Wed Mar 24 10:01:05 CET 2004
Hi,
yes i know this re-typing word(xxx), it is OK.
Second - new FPC v1.9.x for statement
var p:pointer
p:=Ptr(a,b);
shows error "Incompatible types: got "FarPointer" expected "Pointer"".
I found i can declare var p:farpointer;
but i did not found any description for this type of pointer
how can i use it.
Lubomir Cabla
-----Original Message-----
From: Tomas Hajny [mailto:xhajt03 at vol.cz]
Sent: Wednesday, March 24, 2004 9:20 AM
To: fpc-pascal at lists.freepascal.org
Subject: Re: RE: [fpc-pascal]Problem with CASE statement
From: Lubomir.Cabla at cssz.cz
To: fpc-pascal at lists.freepascal.org
Subject: RE: [fpc-pascal]Problem with CASE statement
Date sent: Wed, 24 Mar 2004 08:01:04 +0100
> The problem is in declarations of constant:
>
> const xxx = $4400;
> yyy = $11;
>
> SizeOf(xxx) = 2 in FPC 1.0.10
> 4 in FPC 1.9.x
> SizeOf(yyy) = 1 in FPC 1.0.10
> 4 in FPC 1.9.x
>
> Constants xxx and yyy are ordinal types, but i don't
> know which count of
> bytes they got.
>
> Maybe now are all constants defined like longword
> (dword), but in PDF doc
> for 1.9.2
> i can not find this.
Hi (word (xxx)) should work everywhere if you need to specify
the size explicitely. You're right that it should be documented,
of course.
Tomas
More information about the fpc-pascal
mailing list