comp.lang.ada
 help / color / mirror / Atom feed
From: Larry Hazel <lhazel@mindspring.com>
Subject: Re: new types
Date: Mon, 07 May 2001 22:41:16 -0500
Date: 2001-05-08T03:41:12+00:00	[thread overview]
Message-ID: <3AF76ADC.1E8E5771@mindspring.com> (raw)
In-Reply-To: 9d7m66$s5b$1@news5.svr.pol.co.uk

Bob McChesney wrote:
> 
> Could anyone please help me? I'm trying to make a new type of an access
> type. Is that possible?
> 
> eg.
> you know you can do:
>     type BobType is new Integer
> 
> but can you do:
>     type BobType is new Set_Class.Set
> where Set is:
>     type Set access Set_Header
> ?????
> 
> I've tried to do this and I get the error 'invalid prefix in selected
> component "Set_Class" '
> 
> I don't know if it matters but Set_Class is generic.
> 
> Thanks,
> Bob McChesney

Set_Class.Set doesn't exist if Set_Class is generic.  A new type Set is created
for each instantiation of Set_Class.

Larry



  reply	other threads:[~2001-05-08  3:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-08  2:39 new types Bob McChesney
2001-05-08  3:41 ` Larry Hazel [this message]
2001-05-08 13:36   ` Ted Dennison
2001-05-08 15:29   ` Bob McChesney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox