digitalmars.D.learn - Formated string with assert inside template constraints?
- ArturG (13/13) Jun 09 2016 is it supposed to work?
is it supposed to work?
normally it works e.g.
assert(0, "some\nstring");
prints:
some
string
but if you do it inside a template constraint like this:
void someTemp(T)(T t) if(isCallable!T.call!((b){assert(b,
"some\nstring");}))
{
}
it prints:
some\x0astring
Jun 09 2016








ArturG <var.spool.mail700 gmail.com>