Implementing std.log

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon May 9 15:32:29 PDT 2011


On 5/9/11, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> One possibility is to provide a nice2ugly template that transforms C#
> format strings into % format strings, e.g. nice2ugly!"{1}:{2}" yields
> the string constant "%1$s:%2$s".

That is exactly what my echo function does. It replaces {} syntax with
%$s syntax behind the scenes, and then forwards that to writef.


More information about the Digitalmars-d mailing list