Could everyone give me their opinions on what the top 5 qualities of the C++ Language are, please.
Printable View
Could everyone give me their opinions on what the top 5 qualities of the C++ Language are, please.
Is this a homework assignment?
its a research paper, this is part of the research. Im asking everyones opinion as part of my research, is that too much to ask?
-templates
-operator overloading
-the "this" pointer
-polymorphism
-constructor/destructor
These are some of the most compelling qualities of the language, in my opinion.
-Static type checking
-Classes
-Inheritance
-Templates
-Namespaces
In that order.
-Prelude
versatility.
portability.
multiparadigm.
type safety.
ability to inline asm right into c++ code.
... is not a quality of the C++ languageQuote:
Originally posted by Stoned_Coder
ability to inline asm right into c++ code.
Thanks Stoned_coder, you answered my question perfectly, and thank you the rest of you.
in that case, i question how you define perfect; his answer does not involve matters of opinion, it is merely WRONG.Quote:
Originally posted by Cgawd
Thanks Stoned_coder, you answered my question perfectly, and thank you the rest of you.
may be wrong, but the rest of his answer is right, correct?Quote:
ability to inline asm right into c++ code.
How is it wrong? The C++ standard specifies -Quote:
in that case, i question how you define perfect; his answer does not involve matters of opinion, it is merely WRONG.
Therefore the C++ language provides a method for inlining asm 'right into c++ code'. Hence it is a quality of it. Asm may not be a quality of the C++ language, but unless I'm reading this incorrectly, it was never claimed to be.Quote:
[dcl.asm] 7.4 The asm declaration
1 An asm declaration has the form
asmdefinition:
asm ( stringliteral
) ;
The meaning of an asm declaration is implementationdefined.
[Note: Typically it is used to pass information
through the processor to an assembler. —end note]
oh well, whatever. implementation defined still = useless; your 68k assembly code certainly wont run on an i86, and even on one processor accessing anything in a class will be difficult to impossible because of the different way classes store their info in memory.Quote:
Originally posted by JoeSixpack
How is it wrong? The C++ standard specifies -
Therefore the C++ language provides a method for inlining asm 'right into c++ code'. Hence it is a quality of it. Asm may not be a quality of the C++ language, but unless I'm reading this incorrectly, it was never claimed to be.
From a portability standpoint, then of course it useless. But that's hardly the point.Quote:
implementation defined still = useless
It is a qualitity of the C++ language that it provides you with the option of inlining asm to access processor specific instructions.
Was this last statement right or wrong?
Well perhaps:
- classes
- templates
- overloading
- STL
- export keyword :)
I'm glad many developers doesn't think like you, or else I would suffer the same fate as those poor Linux users staring at a monochrome terminal all day.Quote:
Originally posted by moi
oh well, whatever. implementation defined still = useless;