[gmpi] Re: conventions opinions
- From: David Olofson <david@xxxxxxxxxxx>
- To: gmpi@xxxxxxxxxxxxx
- Date: Tue, 8 Mar 2005 10:15:36 +0100
On Monday 07 March 2005 05.28, Mike Berry wrote:
> Koen Tanghe wrote:
> >
> > With the following two exceptions (that might not be necessary
here, I don't
> > know):
> > - inline functions:
> > put inline function implementations in a file called Foo.inl, and
#include
> > this at the bottom of the Foo.h file
> > - template functions:
> > put template function implementations in a file called Foo.tpl,
and #include
> > this at the bottom of the Foo.h file
> > This is because they have to be defined in every translation unit
that uses
> > them.
> >
>
> I would prefer that we not have files with .inl and .tpl
> extensions. These should be .h or .hpp (whichever we choose) with
> appropriate names. This way they are recognized as standard header
> file types.
I agree. It doesn't seem to make sense to try to "hide" (or whatever
this is about) the inlines and templates, since once you decide to
use inlines and templates in the API, you have to accept that
whatever these depend on invariably becomes part of the public API.
<OT>
(Well, that's true with all native compiling languages I know of,
though it's at least theoretically possible to paste inline code at
link time... Has anyone actually seen that?)
</OT>
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
--- http://olofson.net --- http://www.reologica.se ---
----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules: Please stay on topic. You are responsible for your own
words. Please respect your fellow subscribers. Please do not
redistribute anyone else's words without their permission.
Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe
- Follow-Ups:
- [gmpi] Re: conventions opinions
- From: Koen Tanghe
- References:
- [gmpi] conventions opinions
- From: Tim Hockin
- [gmpi] Re: conventions opinions
- From: Koen Tanghe
- [gmpi] Re: conventions opinions
- From: Mike Berry
Other related posts:
- » [gmpi] conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- » [gmpi] Re: conventions opinions
- [gmpi] Re: conventions opinions
- From: Koen Tanghe
- [gmpi] conventions opinions
- From: Tim Hockin
- [gmpi] Re: conventions opinions
- From: Koen Tanghe
- [gmpi] Re: conventions opinions
- From: Mike Berry