Current status of toString in phobos

Matthias Walter xammy at xammy.homelinux.net
Wed Nov 17 19:48:30 PST 2010


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


More information about the Digitalmars-d-learn mailing list