Avoiding GC in D and code consistancy

Steven Schveighoffer schveiguy at yahoo.com
Sun Dec 31 13:04:02 UTC 2017


On 12/31/17 7:50 AM, Steven Schveighoffer wrote:

> Note, you can use a "sink" version of toString as well, and avoid the gc:
> 
> void toString(void delegate(const(char)[]) sink) @nogc
> {
>      // use formatValue to push into the sink
> }

I guess I'm missing some parameters here, go with what Seb linked to :)

-Steve


More information about the Digitalmars-d-learn mailing list