[phobos] phobos commit, revision 1748

Lars Tandle Kyllingstad lars at kyllingen.net
Sun Jul 11 23:28:10 PDT 2010


This is great, and it was sorely needed!

Have you given any more thought to the issue of user-defined types that
want to define a more elaborate toString() signature than the trivial
one?

It seems that with your recent change to output ranges, both
BigInt-style toString(),

    void toString(void delegate(const(char)[]) sink, string fmt);

and Complex-style toString(),

    void toString(Writer)(ref Writer writer, string fmt)
        if (isOutputRange!(Writer,string))

could be supported without making special cases for each.

-Lars



On Sun, 2010-07-11 at 20:49 -0400, dsource.org wrote:
> phobos commit, revision 1748
> 
> 
> user: andrei
> 
> msg:
> Radical overhaul.
> 
> http://www.dsource.org/projects/phobos/changeset/1748
> 
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos




More information about the phobos mailing list