From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: limited types (Was: Records that could be arrays)
Date: Tue, 28 Feb 2006 10:39:20 +0100
Date: 2006-02-28T10:39:20+01:00 [thread overview]
Message-ID: <9nmzg0hsmfkw$.33czd3g8z0qs.dlg@40tude.net> (raw)
In-Reply-To: 1141081229.680793.223430@j33g2000cwa.googlegroups.com
On 27 Feb 2006 15:00:29 -0800, Matthew Heaney wrote:
> Dmitry A. Kazakov wrote:
>>
>> I don't see how a constraint imposed on elements can propagate to the
>> cursor.
>
> generic
> type ET is private;
> type Cursor is private;
>
> with function E (C : Cursor) return ET is <>;
> ...
> procedure Generic_Algorithm (C1, C2 : CT);
Instantiate Generic_Algorithm with some T and CT. Then put a constraint on
T, that will be a subtype S or a derived type. Now how to get CS from CT?
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2006-02-28 9:39 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-24 16:51 limited types (Was: Records that could be arrays) Thierry Bernier
2006-02-24 21:57 ` Randy Brukardt
2006-02-25 2:21 ` Matthew Heaney
2006-02-25 3:38 ` Matthew Heaney
2006-02-25 11:06 ` Dmitry A. Kazakov
2006-02-25 15:05 ` Matthew Heaney
2006-02-26 1:01 ` Randy Brukardt
2006-02-26 9:00 ` Dmitry A. Kazakov
2006-02-26 18:20 ` Matthew Heaney
2006-02-26 20:52 ` Dmitry A. Kazakov
2006-02-26 22:07 ` Matthew Heaney
2006-02-27 9:11 ` Dmitry A. Kazakov
2006-02-27 14:34 ` Georg Bauhaus
2006-02-27 16:05 ` Dmitry A. Kazakov
2006-02-27 16:52 ` Matthew Heaney
2006-02-27 20:21 ` Dmitry A. Kazakov
2006-02-27 21:40 ` Georg Bauhaus
2006-02-28 9:38 ` Dmitry A. Kazakov
2006-02-27 23:00 ` Matthew Heaney
2006-02-28 9:39 ` Dmitry A. Kazakov [this message]
2006-02-28 17:24 ` Matthew Heaney
2006-02-28 19:06 ` Dmitry A. Kazakov
2006-02-28 19:58 ` Matthew Heaney
2006-02-28 21:03 ` Dmitry A. Kazakov
2006-02-28 21:51 ` limited types Simon Wright
2006-03-01 1:59 ` 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