Just use whatever is appropriate for the task, i use a combination of languages, ObjectPascal for most of the procedural stuff, a logical language for AI, with a few small assembly routines thrown in if i really need them.
1. Object pascal can do anything C++ or C can do.Originally Posted by Korval
2. Every C/C++ API header file gets translated into pascal very quickly. (by www.delphi-jedi.org and others)
3. The compiled code executes just as fast as C (as long as you dont make methods virtual when you dont need to, which is a common mistake)
4. Silly mistakes like invalid typecasting or using an invalid GL constant are detected at compilation.
5. It is easier to find bugs because the code is more explicit, you dont have the problem of a single missing character producing valid code that does something completely different to what you intended.
6. Is is much easier to read & understand someone else's code.
Really though, the choice of language is more of a personnal choice, most people simply use the language that they are most comfortable with.
As for execution speed, if the compiler is good enough and you dont overuse the more complex features when you dont need to, then there should be no difference.
Most speed differences are usually due to the quality of the library routines supplied with it, not the actually language.
A program can be written in any language that runs first time and has no bugs, its just a matter of using the proper software engineering techniques, but its a lot easier to do with pascal than with C because all of the typo's are caught by the compiler.
Quite true, fortunately my compiler lets you replace the memory manager they supply with your own.Garbage Collection is slower than managing the memory yourself