auto sink = appender!(char[]); const world = "World"; // This works sink.formattedWrite("Hello %s", world); // This does not. sink.formattedWrite(i"Hello $(world)");
@RubyTheRoobster updated dlang/phobos pull request #9041 "Fix Issue 24550 - - formattedWrite should support string interpolation " fixing this issue: - Fix Bugzilla Issue 24550 https://github.com/dlang/phobos/pull/9041
Should we really be calling this "formatted" write when it doesn't use a format string? Seems like it would make more sense with a different name; for example: sink.write(i"Hello $(world)");
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10550 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB