|
|
Richard <devr_@xxxxxxxxx> writes:
> "Bartc" <bc@xxxxxxxxxx> writes:
<snip>
>> Exactly why a?b:c can't appear like that on the left-hand-side of an
>> assignment is a bit of a mystery;
>
> There is no mystery about it.
Why not help by explaining it then? It is a mystery to me as well, so
least least two people would benefit from your explanation.
In particular, a Closely Related Language, *does* allow the result of
a conditional operator to be an lvalue. I can't think, off-hand, of a
reason for this difference.
--
Ben.
|
|