Medijski sadržaj
- Tweetovi
- Tweetovi i odgovori
- Medijski sadržaj, trenutna stranica.
-
So someone was saying that after seeing this C++: [[]]([]()[[]]{}={})(); from here: https://twitter.com/shafikyaghmour/status/1128790426519871496 … said that they would they “would stick to C, thank you very much”. I have to wonder have then seen IOCCC before: https://www.ioccc.org/years-spoiler.html …
#programmingpic.twitter.com/c20rsHVVwj
-
I know
@olafurw I am still wearing my Santa hat *sigh* What’s next ...
pic.twitter.com/yQ6gDwjcfmPrikaži ovu nit -
Who would have thought there were over three thousand tweeps who want: - Cursed programming tweets - awful^H^H^H^H^H truthfu^H^H^H^H^H^Hawful programming memes -
#CppPolls and more, much more
pic.twitter.com/g9ZwZK3eYb
Prikaži ovu nit -
Also see “Why must a short be converted to an int before arithmetic operations in C and C++” https://stackoverflow.com/a/24372323/1708801 …pic.twitter.com/hfcr9IBcN1
Prikaži ovu nit -
Alternatively casting one of the operands to a larger unsigned type would have results in both operands becoming unsigned e.g. auto z = static_cast<unsigned>(x)*y; Also see the following godbolt: https://godbolt.org/z/LyfLi- pic.twitter.com/P352YITBQ2
Prikaži ovu nit -
We also need [conv.rank]p1.3 http://eel.is/c++draft/conv.rank#1.3 … to tell us that the rank of short int is < int Which finally tells us that both operands will be converted to int and we end up with signed integer overflow which is undefined behavior, see [expr.pre]p4 http://eel.is/c++draft/expr#pre-4 …pic.twitter.com/DoIPqHEwP5
Prikaži ovu nit -
and [expr.arith.conv] http://eel.is/c++draft/expr.arith.conv … Then we hit the integral promotions [expr.arith.conv]p1.5 http://eel.is/c++draft/expr.arith.conv#1.5 … and then [conv.prom]p1 http://eel.is/c++draft/conv.prom#1 …pic.twitter.com/wPrKNB5gyE
Prikaži ovu nit -
This is an unfortunate result of the Usual Arithmetic Conversions: https://en.cppreference.com/w/c/language/conversion#Usual_arithmetic_conversions … Before performing binary operations we need to bring the operands to a common type via the Usual Arithmetic Conversions. See [expr.mul]p2 http://eel.is/c++draft/expr.mul#2 …pic.twitter.com/oWGx6V6fol
Prikaži ovu nit -
tfw it is the orange site ... but their talking about your paper *sigh*: https://news.ycombinator.com/item?id=22177579 …pic.twitter.com/iBiSqhZM98
-
Because the standard says so: http://eel.is/c++draft/class.mem#nt:pure-specifier …
pic.twitter.com/UNR18h3Uzj
-
Wait, AFAICT this covers it: https://port70.net/~nsz/c/c11/n1570.html#7.29.2.1p9 … and I don't see an exception, is there a DR I am missing?pic.twitter.com/E3e1Z6Kbit
-
Rereading “The Design and Evolution of C++” ((X*)0)->f() Used to be used to simulate static member functions

Defect Report 315 tells us that indirection through a nullptr to access a static member function is not undefined behavior: https://twitter.com/shafikyaghmour/status/1134863936145113089?s=20 …
#cpluspluspic.twitter.com/q02piW3VpZ
-
Rereading “The Design and Evolution of C++” = 0 syntax was used for pure virtual function in order to avoid having to add a new keyword such as pure or abstract because the feature was added close to the next release.
#cpluspluspic.twitter.com/7PDSSPffzn
-
Rereading “The Design and Evolution of C++” Ran into this quote. “Multiple Inheritance is like a parachute. You don’t often need it, but when you do, you really need it.” - Grady Booch
#cpluspluspic.twitter.com/CMYfOgPYc7
-
I have been reading “Rediscovery: Science Fiction by Women (1958 to 1963)”: https://www.goodreads.com/book/show/47933443-rediscovery … I am about halfway through, some stories show their age but they are mostly quite good!
#bookspic.twitter.com/w5tsHy7d8r
-
If you like the original tweet, I will CC you when I post the answer. See this for more information on LP64: https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models …pic.twitter.com/4HC5npWfFy
Prikaži ovu nit -
-
-
The Anonymous Companies That Buy Up Homes: https://www.kqed.org/news/11795988/we-dont-know-whos-buying-up-bay-area-homes … In tight markets having tons of homes sit empty can only make things worse. Reducing supply at the same time driving up prices. Potential artificial crisis if a big investor tries to pull out all at once.pic.twitter.com/upwBMnZ7aa
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.