Class definitions in C++

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Aug 5 03:41:00 GMT 2003


dewar@gnat.com (Robert Dewar) writes:

| > > pretty hard to do for the great majority of C++ (or Ada for that matter)
| > > programmers who have not the slightest awareness of machine language or
| > > its implications.
| > 
| > so since some programmers are imperfect,
| > none of them should get nice sharp tools?  please, no!
| > 
| > C/C++, at least, have never shied from enough-rope features.
| > 
| > regards, mark hahn.
| 
| Well I am not sure it is a matter of rope here. The idea that all class
| definitions in C++ should be regarded as potentially highly target
| instruction set dependent since the programmer is expected to analyze
| for a particular architecture what should and should not be inlined
| seems a bit gruesome.

A class definition need not contain a function definition.  A class
defnition is needed only when the class is used in a way that requires
its definition.  

-- Gaby



More information about the Gcc mailing list