Detecting misusage of delete[] vs. delete at compile time
I’d like to know if it’s possible to detect the delete
error commented below at compile time? Especially, I’d like to hear about g++ compiler.
What happens when using address before it’s allocated?
The very simple piece of C++ code below is incorrect, it’s easy to see why and tools like Valgrind will tell you. In running several C++ codes containing this kind of error, I noticed that each time, it ended up with a Segmentation fault
at the line which tries to use the address.
Compiling multiple languages and Javascript
I have read numerous times that programming languages when making games or large software often use multiple languages / scripts together. I’m wondering how that works. How do they compile it? How does it work together?
Are there any practical uses of allowing recursive inclusion of a file?
I am currently implementing NASM-like preprocessor for my assembler, and I am wondering what is the correct way of handling recursively included files. From what I see, there are two ways to deal with it without hanging the preprocessor or even the OS:
When to pay for C++ compilers [closed]
Closed 10 years ago.
How to implement lazy evaluation of if()
I am currently implementing an expression evaluator (single line expressions, like formulas) based on the following:
Why can’t a compiler avoid importing a header file twice by its own?
New to C++! So I was reading this: http://www.learncpp.com/cpp-tutorial/110-a-first-look-at-the-preprocessor/
What is ASM.js and what does it mean for everyone?
I’m starting to hear rumblings about this project called ASM.js. Currently their web site is terrible and confusing. Here’s what I know from my research on the web.
What is the difference between “Syntax” and “Syntactic Sugar”
In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express. It makes the language “sweeter” for humans to use: things can be expressed more clearly, more concisely, or in an alternative style that some may prefer.
How the cross programming language compiler or translator works [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. These days there are more cross programming language […]