Sign in Join
Wiki copytemporary

NativeUInt: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: NativeUInt

OldNewLine
1+Back to the [[Data type|data types]].
2+
3+Range of values: processor-dependent. Examples of Intel and Intel compatible processors:
4+
5+32 bit processors: 0 .. 4294967295 64 bit processors: 0 .. 18446744073709551615
6+
7+Memory requirements: Examples for Intel and Intel compatible processors:
8+
9+32 bit processors: 4 bytes or 32 bits 64 bit processors: 8 bytes or 64 bits
10+
11+A data field of the data type **NativeUInt** can only accept positive [[Integer|integer values]]. Assigning other values ​​leads to compiler error messages when the program is compiled and the compilation process is aborted. That is, the executable program is not created.
12+
13+Definition of a data field of the type **NativeUInt**:
14+
15+``` pascal
16+ var
17+ nuint : NativeUInt;
18+```
19+
20+Examples of assigning valid values:
21+
22+``` pascal
23+ nuint := 0;
24+ nuint := 4294967295;
25+```
26+
27+Examples of assigning invalid values:
28+
29+``` pascal
30+ nuint := '0';
31+ nuint := '4294967295';
32+```
33+
34+The difference between the two examples is that the upper example is the assignment of literals of the type [[Integer|integer]], while the assignment of the lower example is literals of the type [[String]].
35+
36+---
37+*From the Free Pascal wiki, page "NativeUInt", as it stood on 2020-02-21 after a change by Trev, 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](/wiki-contact).*

Back to history