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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.58.107.203 with SMTP id he11mr1837465veb.12.1397592753848; Tue, 15 Apr 2014 13:12:33 -0700 (PDT) X-Received: by 10.140.43.228 with SMTP id e91mr67657qga.19.1397592753819; Tue, 15 Apr 2014 13:12:33 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!newsfeed.datemas.de!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cm18no3257008qab.0!news-out.google.com!du2ni10245qab.0!nntp.google.com!m5no2265694qaj.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 15 Apr 2014 13:12:33 -0700 (PDT) In-Reply-To: <596f076f-919e-4cd2-bb2e-ad0134e0d5c3@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.240.222.153; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 87.240.222.153 References: <1ffb84f0-5e50-4807-90ff-dfdfac11c501@googlegroups.com> <596f076f-919e-4cd2-bb2e-ad0134e0d5c3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3c4668e7-73f6-4a99-a96d-619639ea49e8@googlegroups.com> Subject: Re: Problem with generic package From: Laurent Injection-Date: Tue, 15 Apr 2014 20:12:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2099 X-Received-Body-CRC: 1997319259 Xref: news.eternal-september.org comp.lang.ada:19314 Date: 2014-04-15T13:12:33-07:00 List-Id: Hi Hm yes and no. I am trying to get rid of Swap_Generic and Sort_Generic. Try= ing to combine those together with my generic search function in one generi= c package: array_generics (stupid name have to find something else). Have j= ust posted them for completeness but forgotten to write it (if its clear fo= r me doesn't mean it is for someone else). Sorry for the confusion. If I leave the swap_generic.ads and with'ing it, comment the swap in the ar= ray_generic.adb out then the instantiation works without changing anything = else. If I remove the swap_generic.adb from the library folder, remove the with'i= ng, reload project... and try to instantiate the swap_generic from the package I get this error: expect generic subprogram in instantiation. No idea why the compiler complains. Should be the same thing as before.=20 Thanks Laurent