« first day (3585 days earlier)      last day (1349 days later) » 

7:26 AM
NASA drops racially charged nicknames of celestial bodies
For a second, I thought they were going to change how they are going to call a 'blackhole'.
 
 
2 hours later…
8:57 AM
@AnArrayOfFunctions Well the idea is that the things are only compiled once. Now for example if you have a lot of heavily templated code like <iostream> you're going to see very little improvement. Possibly a regression because now you're dumping iostream everywhere. This is because the templated code is basically copied into each location and compiled "inline" in that location. So the functions you're using in the precompiled header should really be a list of external functions.
 
 
7 hours later…
4:29 PM
struct S
{
    int i;
    char a[sizeof i];
};
This compiles as C++ but not as C. Interesting.
 
5:05 PM
🤔
@fredoverflow Didn't work in a C compiler?
 
 
2 hours later…
user7659542
7:03 PM
@fredoverflow I guess it s complaining about sizeof i (in C)? VLA stuff
 
user1804599
7:16 PM
C has no reason for i to be in scope in the definition of the struct.
 
user1804599
VLAs are only relevant inside function bodies and with sizes that are not integral constant expressions.
 
user7659542
@rightfold why does C++ allow it in that case?
 
user7659542
Don't answer "because C sucks."
 
user1804599
@traducerad I am not like that.
 
user1804599
There are many places in C++ where referring to a member inside the struct definition is useful, such as decltype or a method definition.
 
user1804599
7:20 PM
In C there’s nothing interesting you can do with members other than addressing them with the . and -> operators. So this feature doesn’t exist.
 

« first day (3585 days earlier)      last day (1349 days later) »