This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Class definitions in C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]