From: Martin Krischik <martin@krischik.com>
Subject: Re: Base'Class is instance of Der1?
Date: Sat, 08 Jan 2005 13:38:59 +0100
Date: 2005-01-08T13:38:59+01:00 [thread overview]
Message-ID: <2132851.tZm0acYkSN@linux1.krischik.com> (raw)
In-Reply-To: 1105185677.254129.171840@c13g2000cwb.googlegroups.com
Hi R
R wrote:
> Hello.
>
> I've got function which has a parameter of type Base'Class.
>
> well I have 3 derived tagged records and depending of what exactly is
> the parameter I have to cast it to a proper function.
Maybe you want a view rename instead of a cast:
http://en.wikibooks.org/wiki/Programming:Ada:Subtypes#Rename_View
> How can I figure out whether or not given object is der1 or der2 or
> der3 type?
You should rename to Base'Class.
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2005-01-08 12:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-08 12:01 Base'Class is instance of Der1? R
2005-01-08 12:38 ` Martin Krischik [this message]
2005-01-08 14:25 ` Martin Dowie
2005-01-08 15:00 ` Martin Krischik
2005-01-10 9:29 ` Martin Dowie
2005-01-08 12:51 ` Ludovic Brenta
2005-01-08 14:20 ` Dreni
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox