[fpc-pascal]Problem with CASE statement

Lubomir.Cabla at cssz.cz Lubomir.Cabla at cssz.cz
Wed Mar 24 10:31:18 CET 2004


Many thanks for your explanation.

-----Original Message-----
From: Peter Vreman [mailto:peter at freepascal.org]
Sent: Wednesday, March 24, 2004 10:23 AM
To: fpc-pascal at lists.freepascal.org
Subject: RE: RE: [fpc-pascal]Problem with CASE statement


> 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.

Farpointer is to support mem[] and ptr(seg,offset)^ to access the real
mode memory. The type is incompatible with Pointer so you can't accidently
use Move() etc. You need the special functions from go32 to access the
real mode memory.



_______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list