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,FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!k19g2000yqc.googlegroups.com!not-for-mail From: xorque Newsgroups: comp.lang.ada Subject: Re: Runtime type selection Date: Sun, 11 Oct 2009 10:15:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <61d081f4-cccc-4575-927f-5c400b73ff90@k19g2000yqc.googlegroups.com> References: <2c15c8a6-b555-4d08-8fe6-f77cb207e7a6@k33g2000yqa.googlegroups.com> <4ad20fd5$0$26308$4f793bc4@news.tdc.fi> NNTP-Posting-Host: 78.143.202.207 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1255281342 2945 127.0.0.1 (11 Oct 2009 17:15:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 11 Oct 2009 17:15:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k19g2000yqc.googlegroups.com; posting-host=78.143.202.207; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.0.13) Gecko/2009081019 Firefox/3.0.13,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8670 Date: 2009-10-11T10:15:42-07:00 List-Id: On Oct 11, 5:02=A0pm, Niklas Holsti wrote: > Keep a list or array of (accesses to) a factory function for each > possible (derived) type. 'Lo, That does sound like the sort of thing I'd have done in C. I still have a nagging sensation that Ada actually provides other means to do this based on such things as the 'Tag attribute. I'll keep this suggestion in mind in the meantime, though.