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.98.82.141 with SMTP id g135mr7973950pfb.24.1475028931282; Tue, 27 Sep 2016 19:15:31 -0700 (PDT) X-Received: by 10.157.59.194 with SMTP id k60mr2087576otc.10.1475028931140; Tue, 27 Sep 2016 19:15:31 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!l13no65040itl.0!news-out.google.com!203ni276itk.0!nntp.google.com!x192no67498itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 27 Sep 2016 19:15:30 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:8350:6600:6aff:fe37:6bdc; posting-account=3pYsyQoAAACcI-ym7XtMOI2PDU8gRZS5 NNTP-Posting-Host: 2601:18f:900:8350:6600:6aff:fe37:6bdc References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Creating a generic package with and setting its type to that of a record From: Andrew Shvets Injection-Date: Wed, 28 Sep 2016 02:15:31 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31913 Date: 2016-09-27T19:15:30-07:00 List-Id: On Tuesday, September 27, 2016 at 10:09:01 PM UTC-4, Jeffrey R. Carter wrote: > On 09/27/2016 06:02 PM, Andrew Shvets wrote: > > Lets say I have this code: > > > > > > generic > > type Custom_Record_Type is <>; > > package Gener is > > ... > > > > > > What I'd like to do is set the type to that of a record (which has some overloaded operators, such as >, < and =.) Can this be done? If so, how? > > This is an invalid generic formal type definition, so you can't do anything with it. > > -- > Jeff Carter > "I did not rob a bank. If I'd robbed a bank, everything > would be great. I tried to rob a bank, is what happened, > and they got me." > Take the Money and Run > 139 So if I have this record in another package and it works, I can't use it in my code example?