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,943350d29d278e69 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Generic package with dynamic subprogram name? References: <82eigfnxzc.fsf@stephe-leake.org> Date: Fri, 11 Jun 2010 05:08:55 -0400 Message-ID: <82r5kendg8.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:87MrE46hgZrVgCx0/uxMxSzytq4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 991584c11fd31e197caa706204 Xref: g2news2.google.com comp.lang.ada:12604 Date: 2010-06-11T05:08:55-04:00 List-Id: Brian Drummond writes: > 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 possible, >>> 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... source > program text, I'd be interested to see it. I'm not aware of any tutorials. gnatstub (included in all GNAT distributions) is a small ASIS application that can serve as a good starting point. auto_text_io (which I wrote) (http://www.stephe-leake.org/ada/auto_text_io.html) is a larger example. -- -- Stephe