Format.convert problme

Qian Xu quian.xu at stud.tu-ilmenau.de
Sat Apr 4 14:52:42 PDT 2009


Hi All,

tango.text.convert.Format provides a nice function to convert anything 
to string.

It works perfect except the argument is a pointer type.
It will print the address of a pointer instead of its value

For instance: --------------------------------
int* i = new int;
*i = 10;
Format.convert("{}", i); // <- the address of the pointer
----------------------------------------------

How to let it print the value instead of the address?
Because I wanna write a dump function to dump the value of any data type 
(also void, null)




-- 
Xu, Qian (stanleyxu)
  http://stanleyxu2005.blogspot.com


More information about the Digitalmars-d-learn mailing list