Re: a^=(b^=a); ?



Clark S. Cox III wrote:
Thomas J. Gritzan wrote:
Clark S. Cox III schrieb:
Robert Gamble wrote:
Clark S. Cox III wrote:
a^=(b^=a)

is undefined; period.
How do you figure that?
It modifies 'a' and it evaluates a for a reason other than determining
it's new value in between sequence points.

Wouldn't then with

a = a; and
node = node->next;

be undefined, too?

(with a of type int and node a linked list structure pointer)


After writing a long defense of my position, I come to realize that
a^=(b^=a) might not be undefined.

I agree with ena8t8si that this is well-defined although the meaning of
the clause you cite could be better spelled out in the Standard.

Robert Gamble

.



Relevant Pages

  • Re: a^=(b^=a); ?
    ... Clark S. Cox III schrieb: ... It modifies 'a' and it evaluates a for a reason other than determining ...
    (comp.lang.c)
  • Re: Any reason for this: !!
    ... Any reason for the double! ... operators end up doing what the conversion would have done implicitly. ... Clark S. Cox, III clarkcox3@xxxxxxxxx ...
    (comp.lang.c)
  • Re: Papajohn, Responsibility and LIES !!!
    ... Cox were blocked by me some time ago, ... As far as I know I>> have had no interaction with you and do not know any reason for it>>. ... >>> papajohn >>> who have ... He refers to his website as being a "personal" site, ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Why does my MUD Identitys date show up like this?
    ... > Can someone help me figure out the reason behind this: ... The Finder only modifies dates of FOLDERS when you "physically" insert ... Entourage FAQ Page: ... PLEASE always state which version of Microsoft Office you are using - ...
    (microsoft.public.mac.office.entourage)
  • Re: Cant sell the encryption
    ... reason that I'm not like you and therefore not volunteering as much as ... provide insight and occasionally insight a ... They are people like Clark [and his many ...
    (sci.crypt)