|
|
lawrence.jones@xxxxxxxxxxx writes:
> Bartc <bc@xxxxxxxxxx> wrote:
>>
>> Exactly why a?b:c can't appear like that on the left-hand-side of an
>> assignment is a bit of a mystery; after all a, a.b, a->b, a[b] and so on can
>> all appear on the lhs without the programmer having to insert explicit
>> address-of operators.
>
> Because b and c are two distinct objects that can have different types,
> which makes the type of any resulting lvalue somewhat problematic.
>
> -Larry Jones
That should nail it ...
|
|