cond. op. on ='s LHS
Anthony Lapadula
al at unhd.unh.edu
Thu Feb 21 08:54:02 AEST 1991
In article <5669:Feb2020:23:4791 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
>
>None of this is relevant to the question at hand, which is whether
>
> *(cond ? &a : &b) = x
>
>is valid. It is, provided that a = x and b = x are valid. It will work
>under any sane compiler. It must work under an ANSI compiler.
Not true. Consider
int a;
char b;
int x;
Certainly ``a = x'' and ``b = x'' are valid, but ``*(cond ? &a : &b) = x''
is not.
-- Anthony (uunet!unhd!al, al at cs.unh.edu) Lapadula
"I would agree with you if you were right." -- Dr Sayer, "Awakenings"
More information about the Comp.lang.c
mailing list