We're having a discussion. Is `(x = 10) += 7;` UB or not?
-
-
Replying to @ArvidGerstmann
Wait, (x = 10) is an lvalue?! I always thought it would return the rvalue assigned. It returns the lvalue assigned to?
1 reply 0 retweets 1 like -
Replying to @oe1cxw @ArvidGerstmann
you were/are right. this is not UB but simply a syntax error. clang: "expression is not assignable" gcc: "lvalue required as left operand of assignment"
1 reply 0 retweets 2 likes -
Replying to @stefanct @ArvidGerstmann
Thank God the world makes sense again. ;)
1 reply 0 retweets 1 like -
-
Replying to @stefanct @ArvidGerstmann
Thank Flying Spaghetti Monster that is. :) But srsly: I am using many other figures of speech that nobody would take literally. Why should I let my atheism limit my range of expression in this case?
1 reply 0 retweets 1 like -
Replying to @oe1cxw @ArvidGerstmann
on the contrary: i don't want to miss the opportunity to be creative in being provocative on this topic ;) but it was not that serious... i think i say it too in english... thank god for oida in viennese ;)
1 reply 0 retweets 1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.