PtrInt
Sent here from PtrUInt.
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
- Use
ptrUIntif anintegervalue will eventually be typecasted to apointer. - Regardless of the size taken up by its elements, an array cannot have more than
high(ptrInt)elements. Additionally, the range type must be a subrange ofptrInt.<sup>1</sup>
notes
PtrInt/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.
From the Free Pascal wiki, page "PtrInt", as it stood on 2022-01-25 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 2 people, 2021–2022
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Alextpp | Created page | |
| Alextpp | ||
| Kai Burghardt | categorize page, insert links in dead-end page, rework | |
| Kai Burghardt | application: fix spelling mistake, supposedly insert new external links [spam detection false positive] (minor) | |
| Kai Burghardt | add pronunciation of ptrUInt |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
