Subj : Re: Not using .cpp files when programming... To : comp.programming From : CBFalconer Date : Wed Jul 20 2005 03:02 am "Alf P. Steinbach" wrote: > robertwessel2@yahoo.com: > .... snip ... >> >> Your compiles will be slower. > > Generally correct. > >> You'll have routines multiply defined when you include the same >> .h in multiple programs that are linked together. > > Sorry, that's incorrect: it's not programs that are linked > together, it's compilation units. > >> Or, if you make the member functions static or inline in the >> class to avoid the name space problems, > > Sorry, that's incorrect: neither 'inline' nor 'static' is used > to avoid name space problems. > >> you'll make a larger executable because all the code is >> duplicated in each compiled program, perhaps many times. > > Sorry, that's incorrect: the main feature of 'inline' is the > acceptance & removal of multiple definitions. So, broadly speaking, you are in full agreement :-) -- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson .