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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.226.163 with SMTP id rt3mr9465294obc.13.1399046456169; Fri, 02 May 2014 09:00:56 -0700 (PDT) X-Received: by 10.140.108.132 with SMTP id j4mr320905qgf.1.1399046456106; Fri, 02 May 2014 09:00:56 -0700 (PDT) Path: backlog2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!c1no591333igq.0!news-out.google.com!dz10ni28916qab.1!nntp.google.com!j15no202973qaq.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 2 May 2014 09:00:55 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.7.15.19; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.7.15.19 References: <21e0e1f0-3fe4-4c5a-8e01-21691a0207f4@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to declare a generic formal type "covered" by another? From: AdaMagica Injection-Date: Fri, 02 May 2014 16:00:56 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:186194 Date: 2014-05-02T09:00:55-07:00 List-Id: On Friday, May 2, 2014 5:12:01 PM UTC+2, Jeffrey Carter wrote: > One can create a safe-pointer package that does not expose an access type (see > the PragmAda Reusable Components for an example), but the result tends to be > restricted to pointers to definite, non-limited types. Shameless plug: I do not see any problems with my implementation for indefinite types: http://www.christ-usch-grein.homepage.t-online.de/Ada/Smart_Pointers.html I didn't consider limited types, though.