info-sather
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sather: templates necessary?


From: Norbert Nemec
Subject: Re: Sather: templates necessary?
Date: Fri, 13 Oct 2000 16:03:04 +0200
User-agent: Mutt/1.0.1i

I think most of the discussion revolves around this fundamental 
misunderstanding:

I am not talking about the problems of compilation speed or the problem 
of the need to distribute source code or anything like that. It is the 
question about interface any implementation. If you write a library, 
you can put the interface into .h files and the implementation into 
.cpp files. compile the thing, link it into a shared library and 
distribute the library and the .h files for people to use it.

Now, if you only change the internal implementation of the library, the 
.h files stay the same and any program out there will silently work 
with the new library as well, without recompilation.

You will never be able to create a C++ compiler that allows changing 
template implementations without having to recompile any program that 
uses the templates.

Of course it's the same for inline functions, but there it only is a 
question of optimization. For templates, it is a fundamental question.

Ciao,
Nobbi

-- 
-- ______________________________________________________
-- JESUS CHRIST IS LORD!
--          To Him, even that machine here has to obey...
--
-- _________________________________Norbert "Nobbi" Nemec
-- Hindenburgstr. 44  ...  D-91054 Erlangen  ...  Germany
-- eMail: <address@hidden>   Tel: +49-(0)-9131-204180



reply via email to

[Prev in Thread] Current Thread [Next in Thread]