Andrej Mitrovic Wrote:

> import std.stdio;
> 
> void main()
> {
>     bool state = false;
>     writeln("state is: " ~ state ? "true" : "false");
> }

lol, if you don't know how an operator works, don't use in bigger expressions. 
You have local variables, right? It's also a bad practice to assemble messages 
from parts. Such code is non-localizable.

writefln(gettext("state is: %s"), gettext(state ? "true" : "false"));
vs
writeln(gettext(state ? "state is: true" : "state is: false"));

the former assumes english language word ordering.
Concat also involves heap activity.

Reply via email to