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,UTF8 Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Generic package with dynamic subprogram name? Date: Thu, 10 Jun 2010 12:48:45 +0200 Organization: Ada At Home Message-ID: References: <82eigfnxzc.fsf@stephe-leake.org> NNTP-Posting-Host: V5c8K/i9W6tPzBeTPWRJ1g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news1.google.com comp.lang.ada:11576 Date: 2010-06-10T12:48:45+02:00 List-Id: Le Thu, 10 Jun 2010 12:14:18 +0200, Brian Drummond = a =C3=A9crit: > 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. > > - 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 =E2=80=9CPublically avail= able ASIS = Applications=E2=80=9D and =E2=80=9CHow to do things in ASIS=E2=80=9D 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.