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: a07f3367d7,da85d9aaf769b16a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!v30g2000yqm.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Generic package parameters not externally visible : what's the rational ? Date: Thu, 29 Oct 2009 17:10:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1ec09aab-070a-48b9-a4ab-d18760d02bb3@v30g2000yqm.googlegroups.com> References: <3084820f-4799-4555-b309-92c8ff7e2436@m16g2000yqc.googlegroups.com> <7e99bb5a-26a8-4ccb-b8d0-3b6882c40ebe@k17g2000yqb.googlegroups.com> NNTP-Posting-Host: 86.66.190.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1256861438 12031 127.0.0.1 (30 Oct 2009 00:10:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 30 Oct 2009 00:10:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v30g2000yqm.googlegroups.com; posting-host=86.66.190.254; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8867 Date: 2009-10-29T17:10:38-07:00 List-Id: On 29 oct, 23:56, "Randy Brukardt" wrote: > I don't have time to give you a detailed reply, sorry. (Well, not unless you > want to hire me for consulting. :-) Don't mind about time, I can understand If could ask you for consulting, I enjoy to do, but unluckily, I'm jobless, ... so ... any I feel honored you've take some time to answer ;) > Typically, when I've had to compose generics, I will nest an instantiation > of one inside the other. (That's pretty much all you could do in Ada 83, > after all.) Most of the time, that works fine, and the operations in the > instance can be used directly or re-exported with renames as needed. I was thinking about such a thing, it was planned, but I still not tried it, because I was busy at thinking about what the best naming conventions are (another topic). > That's pretty cynical. Most of time, once you get your generic working, > you hardly every touch it again. Besides, you could make the above > statement for almost any Ada (or other programming language) code > when it is reused. I also feel better after that, the assertion you replied to with these words, was also a bit frightening to me (I was thinking it was a bit too much, but was not sure after all, as I know there are probably a lot of things I do not know).