comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Generic package with dynamic subprogram name?
Date: Thu, 10 Jun 2010 12:48:45 +0200
Date: 2010-06-10T12:48:45+02:00	[thread overview]
Message-ID: <op.vd2yzjwaule2fv@garhos> (raw)
In-Reply-To: ree11617fl0uaunhegc2bh52oogbe3ce3g@4ax.com

Le Thu, 10 Jun 2010 12:14:18 +0200, Brian Drummond  
<brian_drummond@btconnect.com> a écrit:

> 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.
>
> - Brian
Not a tutorial, but the only one meaningful source about ASIS I know is
http://www.sigada.org/wg/asiswg/
It contains documentations and some examples, some rather complete.
For examples, look at
http://www.sigada.org/wg/asiswg/ASISWG_Results.html
You may want to search for the two links named “Publically available ASIS  
Applications” and “How to do things in ASIS” in the latter page. Good  
point to start, beside the specification files of your compiler's ASIS  
library.

-- 
There is even better than a pragma Assert: a SPARK --# check.
--# check C and WhoKnowWhat and YouKnowWho;
--# assert Ada;
--  i.e. forget about previous premises which leads to conclusion
--  and start with new conclusion as premise.



  reply	other threads:[~2010-06-10 10:48 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) [this message]
2010-06-10 12:13     ` sjw
2010-06-11  9:08     ` Stephen Leake
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