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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: limited types Date: Tue, 28 Feb 2006 21:51:52 +0000 Organization: Pushface Message-ID: 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> <9nmzg0hsmfkw$.33czd3g8z0qs.dlg@40tude.net> <1141147475.263018.23440@u72g2000cwu.googlegroups.com> <1141156690.991228.267400@j33g2000cwa.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1141163509 700 62.49.19.209 (28 Feb 2006 21:51:49 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 28 Feb 2006 21:51:49 +0000 (UTC) Cancel-Lock: sha1:ocR+J3NSL3zRdoYGPWobL+9YNaw= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:3212 Date: 2006-02-28T21:51:52+00:00 List-Id: "Matthew Heaney" writes: > generic > type ET is private; --or: type ET (<>) is limited private; > type CT is private; --cursor type > with function E (C : CT) return ET is <>; > procedure Generic_Algorithm (C1, C2 : CT); > > The cursor pair [C1, C2) describes a range of elements. It might be > the entire range of elements in the container, or just a subrange. > The algorithm doesn't care. I would have expected some operation like Succ on CT? (and equality? would predefined equality on cursors be OK?)