|What if the implementation of a class is split into separate files DrFebruary@yahoo.com (2004-07-13)|
|Re: What if the implementation of a class is split into separate files email@example.com (Ben Elliston) (2004-07-17)|
|Date:||13 Jul 2004 11:15:45 -0400|
|Posted-Date:||13 Jul 2004 11:15:45 EDT|
I came across somebody's code that split the implementation of one
class into separate files. For example, instead of put
in one, let's say, myClass.cpp, this guy put myClass::foo in
myClassfoo.cpp and put myClass::bar in myClassbar.cpp.
My question is:
1. what is the difference, if any, in the code that the compiler
generates? 2. is there any difference on the performances between
these two ways?
[It depends on the compiler, but so long as the interfaces are correcty
defined in header files, I wouldn't think it'd make much difference. -John]
Return to the
Search the comp.compilers archives again.