For questions about the intricacies of formal or authoritative specifications of programming languages and environments.
C++11 introduced a standardized memory model, but what exactly does that mean? And how is it going to affect C++ …
c++ multithreading c++11 language-lawyer memory-modelConsider the main axis and cross axis of a flex container: Source: W3C To align flex items along the …
css flexbox language-lawyer w3cIs this piece of code valid (and defined behavior)? int &nullReference = *(int*)0; Both g++ and clang++ compile it without …
c++ reference null language-lawyerCan someone give a clear definition together with a simple example that explains what is a "callback hell" for someone …
javascript callback language-lawyer reactive-programming rxjsWhat would this statement yield? void *p = malloc(sizeof(void)); Edit: An extension to the question. If sizeof(void) yields 1 …
c++ c language-lawyer sizeofIn c++03 it is pretty clear that deleting a null pointer has no effect. Indeed, it is explicitly stated in §5.3.5/2 …
c++ null language-lawyer delete-operatorI had a lovely conversation with someone about the downfalls of std::stoi. To put it bluntly, it uses std::…
c++ standards language-lawyerclass C { using namespace std; // error }; namespace N { using namespace std; // ok } int main () { using namespace std; // ok } Edit: Want …
c++ namespaces using language-lawyerCame across an interesting interview question: test 1: printf("test %s\n", NULL); printf("test %s\n", NULL); prints: test (null) …
c linux language-lawyer compiler-bugToday I got a problem. I am in the need of a static member function, const is not a must …
c++ static language-lawyer const-method