PhobosV3+ Fundamental Elements

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Tue Sep 8 07:32:05 UTC 2026


On 08/09/2026 11:30 AM, Walter Bright wrote:
> On 9/2/2026 6:17 AM, Max Klyga wrote:
>> The correct way is to have a generic sink, not a string builder. And 
>> especially not a specific string builder class implementation!
> 
> I've been slowly moving the dmd implementation towards sinks. Sinks can 
> be generic even without templates.

Note that what Walter said here has nothing to do with delegates.

The sink is a class, ErrorSink.

It uses varadics and printf style formatting.

Which is a more closely tied to the string builder than the delegates 
being suggested here.


More information about the Digitalmars-d mailing list