_semitwist_traceVal_writefln

A DRY way to display an expression and its value to Stdout.

Usage:

int myVar=100;
mixin(traceVal!("myVar"));
mixin(traceVal!("   myVar-1 "));
mixin(traceVal!("min(4,7)", "max(4,7)")); // from tango.math.Math

Outputs:

myVar: 100
   myVar-1 : 99
min(4,7): 4
max(4,7): 7
alias _semitwist_traceVal_writefln = writefln

Meta