comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Type conversions forced by derived type: alternative?
Date: 1996/09/05
Date: 1996-09-05T00:00:00+00:00	[thread overview]
Message-ID: <Dx8Hv9.Aqt@world.std.com> (raw)
In-Reply-To: udk9uadn0n.fsf@tanana.llnl.gov


In article <udk9uadn0n.fsf@tanana.llnl.gov>,
John Woodruff <woodruff1@llnl.gov> wrote:
>   type Object is new Implementation.Tree;   -- subtype doesn't fit here

Object inherits the primitive ops of Tree, so...

>      if Item_Of(Implementation.Tree (O)).Label = "Hello" then

the type conversion should not be necessary.  Unless I'm missing
something.  I assume Item_Of is a primitive op of type Tree, and should
therefore be inherited by type Object?

- Bob




      reply	other threads:[~1996-09-05  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-04  0:00 Type conversions forced by derived type: alternative? John Woodruff
1996-09-05  0:00 ` Robert A Duff [this message]
replies disabled

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