From: "Jeffrey R. Carter" <spam@spam.com>
Subject: Re: prohibit certain generic instantiations in Ada 2005
Date: Sat, 11 Feb 2006 22:20:05 GMT
Date: 2006-02-11T22:20:05+00:00 [thread overview]
Message-ID: <pqtHf.661$UN.256@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <1cfq4cp2jypst$.q1w29pgsumem$.dlg@40tude.net>
Dmitry A. Kazakov wrote:
> package Checker is
> function Check (T : Float) return Float renames "+";
> end Checker;
>
> with Checker; use Checker;
> generic
> type T is private;
> wth function Check (X : T) return T is <>;
Actually, "is Checker.Check" is closer here to the OP's idea, but even then the
user can supply another function for the Check. What the OP has posted is a
template that can only be instantiated with float; that's no generic at all.
--
Jeff Carter
"Whatever it is, I'm against it."
Horse Feathers
46
next prev parent reply other threads:[~2006-02-11 22:20 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
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 [this message]
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