const assignments problem again

Timon Gehr timon.gehr at gmx.ch
Sun Aug 7 05:16:37 PDT 2011


Lutger Blijdestin wrote:
> I like the ternary operator the best for this, as it is the simplest. I
> always write them like this though, liberally include parenthesis and never
> nest:
>  (condition)
>     ? (truth value)
>     : (false value)

What is the benefit of this, compared to leaving parentheses away entirely?


More information about the Digitalmars-d mailing list