Delphi 5.0
@X // returns the address of X P^ // dereference P, returns the value located at address P Addr(X) // Addr is equivalent to the @ operator Ptr(Address: Integer) // Ptr converts an integer to a pointer var X, Y: Integer; // X and Y are Integer variables P: ^Integer; // P points to an Integer begin X := 17; // assign a value to X P := @X; // assign the address of X to P Y := P^; // dereference P; assign the result to Y end;The reserved word nil is a special constant that can be assigned to any pointer. It means that the pointer is not assigned. Author: Robert Clemenzi - clemenzi@cpcug.org