comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Generic package with dynamic subprogram name?
Date: Fri, 11 Jun 2010 05:08:55 -0400
Date: 2010-06-11T05:08:55-04:00	[thread overview]
Message-ID: <82r5kendg8.fsf@stephe-leake.org> (raw)
In-Reply-To: ree11617fl0uaunhegc2bh52oogbe3ce3g@4ax.com

Brian Drummond <brian_drummond@btconnect.com> writes:

> On Thu, 10 Jun 2010 03:33:11 -0400, Stephen Leake
> <stephen_leake@stephe-leake.org> wrote:
>
>>Marek Janukowicz <marek@janukowicz.net> 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... <cough> 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



  parent reply	other threads:[~2010-06-11  9:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 23:07 Generic package with dynamic subprogram name? Marek Janukowicz
2010-06-09 23:37 ` Jeffrey R. Carter
2010-06-10  6:05   ` Ludovic Brenta
2010-06-10  7:33 ` Stephen Leake
2010-06-10 10:14   ` Brian Drummond
2010-06-10 10:48     ` Yannick Duchêne (Hibou57)
2010-06-10 12:13     ` sjw
2010-06-11  9:08     ` Stephen Leake [this message]
2010-06-11  9:55       ` J-P. Rosen
2010-06-11 12:19       ` Brian Drummond
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox