prettyprint

Prettyprints out aggregate objects, with all their printable members with all their printable values.

This is not only convenient for debugging but also usable to print out current settings and state, where such is kept in structs.

void
prettyprint
(
Flag!"all" all = No.all
Things...
)
(
const auto ref Things things
)

Parameters

all

Whether or not to also display members marked as Unserialisable; usually transitive information that doesn't carry between program runs. Also those annotated Hidden.

things Things

Variadic list of aggregate objects to enumerate.

Examples

struct Foo
{
    int foo;
    string bar;
    float f;
    double d;
}

Foo foo, bar;
prettyprint(foo, bar);