On 06/29/2014 04:22 PM, Ali Çehreli wrote:
On 06/29/2014 04:55 AM, Element 126 wrote:
> I've certainly missed something
formatValue passes your tests:
import std.stdio;
import std.format: formattedWrite, FormatSpec, formatValue;
import std.string: format;
struct wrapper(T) {
private T
I am trying to define custom format specifiers (as described here [1])
for the following wrapper struct :
import std.stdio;
import std.format: formattedWrite, FormatSpec;
import std.string: format;
struct wrapper(T) {
private T val;
public this(T newVal) pure { val = newVal; }