Re: inline class member functions
Date: Wed, 30 Mar 2005 13:42:32 +0100
David White wrote:
> BTW, I don't agree that it is better programming practice to separate
> declarations and definitions than to keep them together. I would think that
> most programmers keep inline declarations and definitions in the same header
> file, and I don't see a problem with that. Do you?
Actually we keep the inline definitions seperate from the declarations
for the same reason that you mentioned (release vs debug builds).
However, in general though we found that inline methods are a
botheration that does not merit their usage. Except for our very
low-level geometry classes (points, vectors, workplanes) we've yet to
see a profile report that has indicated that inlining would result in a
measurable speed improvement.
- Re: Must The template class member function be 100% inline?
... They don't need to be inline, but they do need to be in the same file as the ... declarations. ... See "Why can't I separate the definition of my templates class from it's ...
- Re: An "acceptable" use of break
... Declarations mixed in with code are allowed in the current C ... > this condition tests something slightly different that you think it does. ... whats usually good programming practice? ... and the mainwith out int main.. ...
- Re: Function questions?
... Although there is a special-case exception for derived types, ... not a corresponding exception for specification expressions. ... I do visually separate the declarations of procedure arguments (and ...
- Re: optimize, inline, oh my (questions)
... inline options. ... its sections on idiosyncracies, efficiency and type declarations. ... Code optimization techniques can also adversely impact on the develpment ... Once you have gotten to that point, then start adding type declarations ...
- Re: introspection in SML
... inline and notinline declarations, and compiler macros. ...