comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: prohibit certain generic instantiations in Ada 2005
Date: Sat, 11 Feb 2006 11:45:32 +0100
Date: 2006-02-11T11:45:22+01:00	[thread overview]
Message-ID: <1573u53mucvzs$.1ffxvsbwlfggm$.dlg@40tude.net> (raw)
In-Reply-To: 1139598205.17535.46.camel@sonnenregen

On Fri, 10 Feb 2006 20:03:25 +0100, Georg Bauhaus wrote:

> On Fri, 2006-02-10 at 19:25 +0100, Dmitry A. Kazakov wrote:
> 
>> So,
>> basically, C++ is unable to check anything specific about the type of
>> template a parameter.
> 
> Don't you think that while template <class T> doesn't
> require T to conform to some type, T's operations can
> still be named in the template definition? Like with
> the Can_Copy example that Stroustrup explains?

Things from the definition are checked upon instantiation = too late.
Talking about compile-time checks, we should separate compilation of
templates and their instantiations. In my view, anything checked outside
the formal part does not count, because it is *other* compile-time.

[ Let you use a code management system and a template library is under that
system. Then each time you ship a new version of the library, all the
projects dependant on it should get a new version as well. Now, because
templates aren't properly checked, you can't much rely on them until you
try. In the end, you have an immense overhead in the developing cycle.]

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2006-02-11 10:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-09 18:01 prohibit certain generic instantiations in Ada 2005 matteo.bordin
2006-02-09 20:02 ` Matthew Heaney
2006-02-10 14:18   ` matteo.bordin
2006-02-10 18:25     ` Dmitry A. Kazakov
2006-02-10 19:03       ` Georg Bauhaus
2006-02-11 10:45         ` Dmitry A. Kazakov [this message]
2006-02-11  8:04       ` matteo.bordin
2006-02-11  9:54         ` Martin Krischik
2006-02-11 10:20           ` matteo.bordin
2006-02-11 12:46             ` Martin Krischik
2006-02-11 10:45         ` Dmitry A. Kazakov
2006-02-11 22:20           ` Jeffrey R. Carter
2006-02-11 15:36         ` Stephen Leake
2006-02-12  8:55           ` matteo.bordin
2006-02-12  9:49             ` Dmitry A. Kazakov
2006-02-12 12:41               ` matteo.bordin
2006-02-13 19:14             ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox