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: 103376,943350d29d278e69 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!a30g2000yqn.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Generic package with dynamic subprogram name? Date: Thu, 10 Jun 2010 05:13:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <78c77b6e-0a9b-4c82-b1bf-49db489670f8@a30g2000yqn.googlegroups.com> References: <82eigfnxzc.fsf@stephe-leake.org> NNTP-Posting-Host: 20.133.0.13 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1276172023 4174 127.0.0.1 (10 Jun 2010 12:13:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 Jun 2010 12:13:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a30g2000yqn.googlegroups.com; posting-host=20.133.0.13; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:11582 Date: 2010-06-10T05:13:42-07:00 List-Id: On Jun 10, 11:14=A0am, Brian Drummond wrote: > On Thu, 10 Jun 2010 03:33:11 -0400, Stephen Leake > > wrote: > >Marek Janukowicz writes: > >> I understand things I ask about in the subject are most likely not pos= sible, > >> but is there any other way to achieve what I want? > > >Renames was suggested. Writing all of those can get tedious, and > >probably defeats the purpose of the generic. > > >Using an ASIS application to generate code would be another way. > > Any pointers (uh, references) where to learn ASIS for this purpose? > I've always understood ASIS as being used to analyze Ada, not generate it= ... > > If there is a tutorial somewhere using ASIS to generate co... sou= rce > program text, I'd be interested to see it. http://www.mckae.com/avatox.html -- "Avatox (Ada, Via Asis, To Xml) is an application that traverses one or more Ada compilation units and outputs the ASIS representation of the unit(s) as an XML document. The resulting XML document(s) can then have an XSL stylesheet applied in turn." And you can use an XSL stylesheet to generate code. Another application in the same space is my ASIS2XML -- http://gnat-asis.sourceforge.net/pmwiki.php/Main/ASIS2XML .