Difference between revisions of "simple type"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
A ''simple type'' is a single value which can be stored in an [[Identifier]]. Simple types are predefined by the compiler, but are not [[Reserved word|reserved words]]. While it is not recommended, they can be redefined. The simple types predefined by the compiler are:
 
A ''simple type'' is a single value which can be stored in an [[Identifier]]. Simple types are predefined by the compiler, but are not [[Reserved word|reserved words]]. While it is not recommended, they can be redefined. The simple types predefined by the compiler are:
  
{{stub}}
+
 
 +
{|
 +
! name || bytes
 +
| boolean || ?
 +
|-
 +
| byte || 1
 +
|-
 +
| cardinal || ?
 +
|-
 +
| char || ?
 +
|-
 +
| currency ||
 +
|-
 +
| extended
 +
|-
 +
| int64 || 8
 +
|-
 +
| integer ||
 +
|-
 +
| longint ||
 +
|-
 +
| pointer ||
 +
|-
 +
| real ||
 +
|-
 +
| shortint ||
 +
|-
 +
| smallint ||
 +
|-
 +
| word || 2
 +
|}
 +
{{Data types}}

Revision as of 13:06, 24 November 2020

A simple type is a single value which can be stored in an Identifier. Simple types are predefined by the compiler, but are not reserved words. While it is not recommended, they can be redefined. The simple types predefined by the compiler are:


name bytes boolean ?
byte 1
cardinal ?
char ?
currency
extended
int64 8
integer
longint
pointer
real
shortint
smallint
word 2


navigation bar: data types
simple data types

boolean byte cardinal char currency double dword extended int8 int16 int32 int64 integer longint real shortint single smallint pointer qword word

complex data types

array class object record set string shortstring