Path: utzoo!utgpu!watmath!watdcsu!dmurdoch
From: dmurdoch@watdcsu.waterloo.edu (D.J. Murdoch - Statistics)
Newsgroups: comp.lang.pascal
Subject: Re: Pointers in TP4
Keywords: operations on them
Message-ID: <5326@watdcsu.waterloo.edu>
Date: 30 Nov 88 14:18:58 GMT
References: <340@lafcol.UUCP> <230@prles2.UUCP>
Reply-To: dmurdoch@watdcsu.waterloo.edu (D.J. Murdoch - Statistics)
Organization: U. of Waterloo, Ontario
Lines: 9

In article <230@prles2.UUCP> vanpelt@nvpna1.UUCP (bart van pelt) writes:
>
>To increment pointers in TP4, use a type cast as follows
>
>longint( Ptr ) := longint( Ptr ) + Increment;

No!  This won't work when you're crossing 64K segment boundaries.  It will
only increment the segment by 1, when it should be incremented by $1000.
Even though pointers use up 32 bits, addresses are only 20 bits long on a PC.