The OpenD Programming Language

OutBuffer.writefln

Formats and writes its arguments in text format to the OutBuffer, followed by a newline.

  1. void writefln(const(Char)[] fmt, A args)
    class OutBuffer
    void
    writefln
    (
    Char
    A...
    )
    (
    scope const(Char)[] fmt
    ,)
  2. void writefln(A args)

Parameters

fmt const(Char)[]

format string as described in std.format.formattedWrite

args A

arguments to be formatted

Examples

OutBuffer b = new OutBuffer();
b.writefln("a%sb", 16);
assert(b.toString() == "a16b\n");
OutBuffer b = new OutBuffer();
b.writefln!"a%sb"(16);
assert(b.toString() == "a16b\n");

See Also

Meta