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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c7ff90b15f15636c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 12 Oct 2009 11:26:22 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Runtime type selection References: <2c15c8a6-b555-4d08-8fe6-f77cb207e7a6@k33g2000yqa.googlegroups.com> <4ad20fd5$0$26308$4f793bc4@news.tdc.fi> <61d081f4-cccc-4575-927f-5c400b73ff90@k19g2000yqc.googlegroups.com> <4ad23819$0$6256$4f793bc4@news.tdc.fi> In-Reply-To: <4ad23819$0$6256$4f793bc4@news.tdc.fi> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4ad2f63e$0$6581$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 12 Oct 2009 11:26:23 CEST NNTP-Posting-Host: 3c632e99.newsspool3.arcor-online.net X-Trace: DXC=4<_k]92A\Fnj5k5aEF7ISmMcF=Q^Z^V3h4Fo<]lROoRa8kFjLh>_cHTX3jmHlWEgY;hj8a X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8676 Date: 2009-10-12T11:26:23+02:00 List-Id: Niklas Holsti schrieb: > Did you read about the package Ada.Tags (RM 3.9)? Also, http://www.adaic.org/standards/05rat/html/Rat-2-6.html > Perhaps some expert can explain why this reflection capability (find > tags for all derived types in a class) was not included in Ada.Tags? > Perhaps because Ada run-time systems do not need such a function for > their own purposes? Not an expert, but finding the tagged types after the fact and when using GNAT can be done, sort of, with gnatxref -d . Or, if the names of the types share a common substring, using gnatfind.