Ternary if and ~ does not work quite well
Marc Schütz via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 12 02:16:16 PDT 2015
On Monday, 12 October 2015 at 05:34:13 UTC, anonymous wrote:
> It's `assert(("foo "~ true) ? ("bar") : ("baz" == "foo bar"));`
> though.
"foo" ~ true
Stupid C implicit conversion rules...
More information about the Digitalmars-d-learn
mailing list