|
|
In article <fsrc0v$4ov$3@xxxxxxxxxxxxxxxxxxxxxxxxx>,
Richard <devr_@xxxxxxxxx> wrote:
>> I mean I'm OK personally with the way it works in C. I just like to
>> know what is it exactly in '(c?x:y)=v' that triggers a "I don't really
>> know what to say" reaction from some people.
>because its not a macro? it returns a value. I dont know the legalise
>words but it seems "obvious" enough to me, but again it might be because
>I am tainted.
Some other languages allow this. For example, I think Algol 68 allows
IF a THEN b ELSE c FI := d;
In C the number of contexts where an lvalue doesn't decay into an rvalue
is very small, but I don't see anything inherently un-C-like about this
case.
-- Richard
--
:wq
|
|