Talk:Simple Types (Delphi)
I believe that sections
1.2 Generic Integer Types 1.3 Fundamental Integer Types
should be rather
1.1.1 Generic Integer Types 1.1.2 Fundamental Integer Types
i.e. — subsections of section "1.1 Integer Types".
Please add the column "Alias" to the "Fundamental integer types" table:
Type | Range | Format | Alias |
---|---|---|---|
Shortint |
-128..127 |
signed 8-bit |
|
Smallint |
-32768..32767 |
signed 16-bit |
|
Longint |
-2147483648..2147483647 |
signed 32-bit |
|
Int64 |
-2^63..2^63-1 |
signed 64-bit |
|
Byte |
0..255 |
unsigned 8-bit |
|
Word |
0..65535 |
unsigned 16-bit |
|
Longword |
0..4294967295 |
unsigned 32-bit |
|
UInt64 |
0..2^64-1 |
unsigned 64-bit |
-- Blaise
Changed by request.
DONE
KrisHouser 19:56, 2 March 2010 (PST)
QC 70333 seems fixed
QC 70333 seems to be fixed now, but it's not even open in QC ;-) MarkusHumm 11:49, 30 Mai 2010 (CEST)
typing error
var X: Size; X := Small; // Ord(X) = 5 Y := Size(6); // Ord(X) = 6 Inc(X); // Ord(X) = 7
must be
X := Size(6); // Ord(X) = 6
Thrall15032 01:09, 13 January 2012 (PST)
Response
Yes, you are correct, and the original hard-copy Delphi Language Guide was also correct. I have made the change in all the XE2 wikis.
Many thanks for your contribution --
KrisHouser 10:11, 13 January 2012 (PST)