Hi,

I am not sure, whether the output of following coding is correct:

import std.stdio;

void main()
{
        writeln("foo "~ true ? "bar" : "baz");
        writeln("foo "~ false ? "bar" : "baz");
// assert("foo "~ true ? "bar" : "baz" == "foo bar"); does not compile
}

Output:
bar
bar

I would expect the output:
foo bar
foo baz

Also I would expect the assertion to compile.

Kind regards
André

Reply via email to