[fpc-pascal] Printing of Pointer Type

Peter Vreman peter at freepascal.org
Thu Jul 17 12:41:19 CEST 2008


>> Because there are easy ways around it (as you mention) and the work to
>> implement and maintain this would probably outweigh the usefulness.
>>
> Yes, it's easy but uncomfortable and needs more typing.

You can use hexstr() to convert the pointer to a hexadeciaml number:

var p: pointer;
begin
  p:=@p;
  writeln(hexstr(p));
end.





More information about the fpc-pascal mailing list