Re: Current status of toString in phobos

2010-11-19 Thread Don
Matthias Walter wrote: I've read the bug comments. Seems as it will take some time until the toString system gets renewed (although I like Don's way, but without the corresponding format/writefln implementation, it is pretty useless). The bug in format/writefln has now been fixed. Works in svn.

Re: Current status of toString in phobos

2010-11-18 Thread Matthias Walter
On 11/18/2010 12:04 AM, Jonathan M Davis wrote: > On Wednesday 17 November 2010 19:48:30 Matthias Walter wrote: > >> 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

Re: Current status of toString in phobos

2010-11-17 Thread Jonathan M Davis
On Wednesday 17 November 2010 19:48:30 Matthias Walter wrote: > 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 > > cur

Current status of toString in phobos

2010-11-17 Thread Matthias Walter
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: | au