digitalmars.D.learn - Current status of toString in phobos
- Matthias Walter (9/9) Nov 17 2010 Hi,
Hi, 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); Thanks Matthias
Nov 17 2010