Re: [Fresco-devel] Suggested addition to Coding Style-guide

Stefanus Du Toit <[email protected]> Sat, 12 Apr 2003 19:30:21 -0400
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
On Sun, Apr 13, 2003 at 01:14:53AM +0200, Gabriel Dos Reis wrote:
> When build times is really an issue, I believe using that using
> things like precompiled headers helps much more than declaring by
> hand which entity one uses.  At least, that is my exprience with
> large projects.

Using a compiler cache should also all but completely eliminate this
particular issue.

I didn't realise that "regular" gcc supports precompiled headers these
days. Since when is that the case?

> A frightening downside of forward declaring "by hand" is the same as
> why you don't want code-duplication: Every minor change needs to be
> done at zillions of places, whereas including a forward declaration
> header keeps the changes in one place.

I think this is a reasonable point. A decent place to draw the line
for Fresco may be one file per directory, since for the most part
things are fairly well compartmentalized.

-- 
Stefanus Du Toit; http://3.141592.org/; gpg 4bf2e217; #include <iostream>
template<int i,int j=i-1>struct I{I(){if(i%j)I<i,j-1>();else I<i-1>();}};
template<int i>struct I<i,1>{I(){std::cout<<i<<'\n';I<i-1>();}};template<
>struct I<1,0>{I(){}};int main(){I<50>();}/* Use -ftemplate-depth-5000 */