in reply to Re^2: parentheses around a function call in a ternary choice
in thread parentheses around a function call in a ternary choice

a successful print returns true (see print). So your prints are equivalent to

1 ? "3: Flag is up\n" : "3: Flag is not up\n";

and that's a constant expression that evaluates to

"3: Flag is up\n";

That's a constant that isn't used for anything -- a constant in void context.

When you get errors or warnings you don't understand try adding use diagnostics;. It will try to explain the error or warning given.


Unless I state otherwise, all my code runs with strict and warnings