Most voted "language-lawyer" questions
Questions about the opposition between "what usually works in practice" and "what the specification guarantees will work". Also about problems related to how the specification was written and the definition of terms.
Learn more…3 questions
Sort by count of
-
21
votes1
answer1790
viewsWhy is Language D rarely used?
I’ve done a lot of research on the language, I’ve used compilers, Ides (Eclipse, Mono, Codeblocks). I thought she was "too good to be true". It has the whole structure of the Java/C# syntax (which…
-
17
votes5
answers453
viewsIs it legal to delete this in a member function?
The language delete this serves for an object to commit suicide. For example: void Recurso::release() { --refs; if (refs == 0) delete this; // Aqui o 'this' pode ser um ponteiro inválido, // tocar o…
-
11
votes4
answers152
viewsIs a compiler allowed to omit a reference member in a class?
Consider the following class: struct Type { int a, b, c; int& ref; Type(int m) : a(m), b(m), c(m), ref(a) { } Type(const Type& ot) : a(ot.a), b(ot.b), c(ot.c), ref(a) { } } obj; Here we have…