The data types ptrInt (“Peter Int”) and ptrUInt (“Pee true Int”) are signed and unsigned integer data types respectively having the same sizeOf of a pointer.
application
edit- Use
ptrUIntif anintegervalue will eventually be typecasted to apointer. - Regardless of the size taken up by its elements, an
arraycannot have more thanhigh(ptrInt)elements. Additionally, the range type must be a subrange ofptrInt.https://www.freepascal.org/docs-html/current/user/userse62.html
notes
editPtrInt/ptrUIntare not necessarily the same size ofALUSInt/ALUUInt.- The introduction of
ptrIntwas a mistake. New code should not use it. IntPtrandnativeIntare aliases forptrInt.UIntPtrandnativeUIntare aliases forptrUInt.PtrIntandptrUIntare redefined by theunitunicodeData.