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.195.202 with SMTP id ig10mr1913923vec.38.1397594613550; Tue, 15 Apr 2014 13:43:33 -0700 (PDT) X-Received: by 10.140.43.228 with SMTP id e91mr74106qga.19.1397594613524; Tue, 15 Apr 2014 13:43:33 -0700 (PDT) Path: backlog2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!m5no2272407qaj.1!news-out.google.com!du2ni10245qab.0!nntp.google.com!m5no2272406qaj.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 15 Apr 2014 13:43:33 -0700 (PDT) In-Reply-To: <3c4668e7-73f6-4a99-a96d-619639ea49e8@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=129.59.203.152; posting-account=7Oy7OQoAAABhVYFOo553Cn1-AaU-bSfl NNTP-Posting-Host: 129.59.203.152 References: <1ffb84f0-5e50-4807-90ff-dfdfac11c501@googlegroups.com> <596f076f-919e-4cd2-bb2e-ad0134e0d5c3@googlegroups.com> <3c4668e7-73f6-4a99-a96d-619639ea49e8@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <56bc5a14-ae72-47ed-b1fa-b3f7fecf91c4@googlegroups.com> Subject: Re: Problem with generic package From: Eryndlia Mavourneen Injection-Date: Tue, 15 Apr 2014 20:43:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:185752 Date: 2014-04-15T13:43:33-07:00 List-Id: On Tuesday, April 15, 2014 3:12:33 PM UTC-5, Laurent wrote: > Hi >=20 > Hm yes and no. I am trying to get rid of Swap_Generic and Sort_Generic. T= rying to combine those together with my generic search function in one gene= ric package: array_generics (stupid name have to find something else). Have= just posted them for completeness but forgotten to write it (if its clear = for me doesn't mean it is for someone else). >=20 > Sorry for the confusion. >=20 > If I leave the swap_generic.ads and with'ing it, comment the swap in the = array_generic.adb out then the instantiation works without changing anythin= g else. >=20 > If I remove the swap_generic.adb from the library folder, remove the with= 'ing, reload project...and try to instantiate the swap_generic from the pac= kage I get this error: >=20 > expect generic subprogram in instantiation. >=20 > No idea why the compiler complains. Should be the same thing as before.= =20 >=20 > Thanks > Laurent I believe the problem is that you did not define a Compare function in your= instantiation. Try with function Compare (Left, Right : Element_Type) return Boolean i= s <>; Eryndlia Mavourneen (KK1T)