delphi 的null是一个variant(定义在system单元里),一般不要乱用,如
var hwnd:thandle=null;等.
nil是一个特殊的常量,可以这样认为 const nilointer=0;
以下是我定义const aaointer=0;后delphi给出的一个warning
Constant 0 converted to NIL
Description
The Pascal compiler allows the constant 0 to be used in pointer expresions
in place of NIL. This allows older code to compile with changes that were
made in the low-level RTL.