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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f34a46f284c01816 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Base'Class is instance of Der1? Date: Sat, 08 Jan 2005 13:38:59 +0100 Organization: None Message-ID: <2132851.tZm0acYkSN@linux1.krischik.com> References: <1105185677.254129.171840@c13g2000cwb.googlegroups.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1105188493 04 17696 9ToVrqRvz89tFzs 050108 12:48:13 X-Complaints-To: usenet-abuse@t-online.de X-ID: Vr6f-eZLQeMcB6VDJwpSOtq3sjO+-55ZsmZHcf38rJe-SL7ZHRx6kI User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:7564 Date: 2005-01-08T13:38:59+01:00 List-Id: 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