Purity of delegate-style toString

Per Nordlöw per.nordlow at gmail.com
Tue May 1 11:44:13 UTC 2018


In which cases (if any) is it possible to make a delegate-style 
implementation of toString such as

     void toString(scope void delegate(const(char)[]) sink) const 
@trusted pure
     {
         // sink("...");
         // sink.formattedWrite!"..."(...);
     }

pure?


More information about the Digitalmars-d-learn mailing list