dump

Pretty-print variables with name and values. It can print will print all compile-time and runtime arguments. The first runtime argument can be a custom OutputRange. The following argument can be a custom format can be given in the format Syntax, where the first value is the name of the variable (or number for runtime arguments), the second it's value and the third it's type. Positional specifier can be used too. If no OutputRange is given, a string will be returned. Callable objects will be evaluated.

  1. void dump(Writer w, Char[] fmt, Xs xs)
    template dump(T...)
    void
    dump
    (
    Writer
    Char
    Xs...
    )
    (
    Writer w
    ,
    in Char[] fmt
    ,
    lazy Xs xs
    )
    if (
    isOutputRange!(Writer, string)
    )
  2. string dump(Char[] fmt, Xs xs)

Members

Functions

dump
void dump(Writer w, Char[] fmt, Xs xs)
Undocumented in source. Be warned that the author may not have intended to support it.
dump
string dump(Char[] fmt, Xs xs)
Undocumented in source. Be warned that the author may not have intended to support it.

Parameters

T

names of the variables to print

w

The OutputRange to write to.

fmt

The format of the data to read.

xs

runtime arguments to print

Return Value

void if an output range was provided as first runtime argument and a string otherwise.

Meta