Sign in Join
Wiki copytemporary

NativeInt

Deutsch · English · Français

Back to the data types.

Range of values: processor-dependent. Examples for Intel and Intel compatible processors:

Memory requirements: processor-dependent. Examples of Intel and Intel compatible processors:

A data field of the data type NativeInt can hold negative and positive 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.

Definition of a data field of the type NativeInt:

pascal
  var 
    nint : NativeInt;

Examples of assigning valid values:

pascal
  nint := -2147483648;
  nint := 2147483647;

Examples of assigning invalid values:

pascal
  nint := '-2147483648';
  nint := '2147483647';

The difference between the two examples is that the upper example is the assignment of literals of the type Integer, while the assignment of the lower example is literals of the type String.


From the Free Pascal wiki, page "NativeInt", 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.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.