From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b553d2c02a2df59f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!atl-c05.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!bigfeed3.bellsouth.net!news.bellsouth.net!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: limited types (Was: Records that could be arrays) Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1cwl2r5h594du$.1q4kglbpb2bma.dlg@40tude.net> <10ovc4gxk6wka.gttjb2v0fbcq$.dlg@40tude.net> <13yslifejxwuq.15rip8gh2aufj.dlg@40tude.net> <44031ace$0$13779$9b4e6d93@newsread4.arcor-online.net> <1i6nwodxgp1bn.voklt7nvcl1g$.dlg@40tude.net> <1141059143.617291.39980@i40g2000cwc.googlegroups.com> <1dd53t0syyc1z.1ety6xoat1ce5$.dlg@40tude.net> <1141081229.680793.223430@j33g2000cwa.googlegroups.com> Date: Tue, 28 Feb 2006 10:39:20 +0100 Message-ID: <9nmzg0hsmfkw$.33czd3g8z0qs.dlg@40tude.net> NNTP-Posting-Date: 28 Feb 2006 10:39:20 MET NNTP-Posting-Host: b2cf02c6.newsread4.arcor-online.net X-Trace: DXC=IFRi\bQn9S>2j7j^L?86D8:ejgIfPPld4jW\KbG]kaM8Qc4L4[MA2T067enW;^6ZC`4IXm65S@:3>? X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3199 Date: 2006-02-28T10:39:20+01:00 List-Id: 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