www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Current status of toString in phobos


I'm currently using DMD v2.049 with phobos. I found an old discussion
about how toString should be designed and how it is supposed to work. As
the following code does not print out the number, I wonder what is the
current status of how to implement a toString function for a struct/class:

| auto n = BigInt("42");
| writefln("%s", n);

Nov 17 2010