From: Andrew Shvets <andrew.shvets@gmail.com>
Subject: Re: Creating a generic package with and setting its type to that of a record
Date: Tue, 27 Sep 2016 19:15:30 -0700 (PDT)
Date: 2016-09-27T19:15:30-07:00 [thread overview]
Message-ID: <e22a46da-f436-490f-890b-385a9670635e@googlegroups.com> (raw)
In-Reply-To: <nsf8ng$dlb$1@dont-email.me>
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?
next prev parent reply other threads:[~2016-09-28 2:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 1:02 Creating a generic package with and setting its type to that of a record Andrew Shvets
2016-09-28 2:08 ` Jeffrey R. Carter
2016-09-28 2:15 ` Andrew Shvets [this message]
2016-09-28 6:15 ` Simon Wright
2016-09-28 21:38 ` Randy Brukardt
2016-09-29 7:57 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox