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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder7.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost2.xs4all.net!news.kpn.nl!not-for-mail Newsgroups: comp.lang.ada X-Mozilla-News-Host: news://news.kpn.nl:119 From: ldries46 Subject: Using Generic Pasckages Date: Thu, 9 Apr 2020 10:40:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl Message-ID: <5e8edf69$0$18432$e4fe514c@news.kpn.nl> NNTP-Posting-Host: 61659d0f.news.kpn.nl X-Trace: G=ZBE7ZZAT,C=U2FsdGVkX1+6jdrybt3FnaPt5ltcKBbd0PAhfuQxmPQ4Nh/e3PokOjCxnjZ3XbvGX5wZj7rMmURoP68+gyknm5KydCVxeu6+nhx2qnumhMI= X-Complaints-To: abuse@kpn.nl Xref: reader01.eternal-september.org comp.lang.ada:58331 Date: 2020-04-09T10:40:07+02:00 List-Id: I have created some generic packages. tese are packages that only do the same thing but with other types. Till now I did only need these packages without interaction with between packages using the same type. I just can declare them: Package AA is new BB(type); then calling them as A := AA.Get_Value; No other declaration seemed to be neccesary . Now I have the following situation: Package AA is new BB(integer); Package CC is new BB(integer); and a case where I have several statements using Package AA in one condition and CC the other case. I want  to do that by using: if D then EE := AA; else EE := CC; end if; But I cannot find in the documentation  how the declaration of EE should be made. Of course there is the possibility to create the same progrram without using EE but that is far less readable and thus creating more possible errors. If I have to do this without the generic packages I already have the program alse will be less readable.