装上Delphi 2010 后, 试了一下, 感觉不错, 只是基本数据类型发生变化了.
-----------------------------------------------------------------------------------------------------------
Delphi 7 字节数 Delphi 2010 字节数
-----------------------------------------------------------------------------------------------------------------
char 1 ansichar 1
char 2
Integer 4 Integer 4
byte 1 byte 1
word 2 word 2
Cardinal 4 Cardinal 4
double 8 double 8
currency 8 currency 8
-------------------------------------------------------------------------------------------------------------
string 的 string 的
一个字符 1 一个字符 2
ansistring
的一个字符 1
--------------------------------------------------------------------------------------------------------------
从表中我们看到:
基础数据类型 最大的变化是:
char 变成了 2字节的 unicode 字符
string 变成了 unicode 字符串
delphi 2010 在 system 中新增:
type
Int8 = ShortInt;
Int16 = SmallInt;
Int32 = Integer;
UInt8 = Byte;
UInt16 = Word;
UInt32 = Cardinal;