DIP9 -- Redo toString API

Steven Schveighoffer schveiguy at yahoo.com
Fri Nov 19 04:40:43 PST 2010


On Thu, 18 Nov 2010 20:18:19 -0500, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> On Thursday, November 18, 2010 14:21:20 Steven Schveighoffer wrote:
>> I just created a new D Improvement Proposal to fix the toString problem  
>> I
>> brought up several posts ago.
>>
>> See: http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP9
>
> Looks good overall, but I would point out that the text claims that sink  
> is
> const scope - i.e. in - but the signature that's given is only scope. I  
> assume
> that you intended to make the signature use in (or an explicit const  
> scope)
> instead?

I looked at it again, I see 'in' there, is there something I'm missing?

Reiterating here:

void writeTo(scope void delegate(>>> in <<< char[] data) sink, string  
format = null) const

-Steve


More information about the Digitalmars-d mailing list