Stefan <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #5 from Stefan <> ---
(In reply to David Nadlinger from comment #1)
>     (true ? (stt = "AA") : stt) = "BB",
> in line with C and other languages, but notably not C++.

The value of the ternary conditional operator of C is not an l-value. Hence the
compilations fails (for a conforming compiler). JavaScript/ECMAScript follows
C++. C# does probably not allow a free ternary conditional. The only language I
found which behaves like D is perl.


Reply via email to