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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,73cb216d191f0fef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.68.136.104 with SMTP id pz8mr1769298pbb.3.1363279345575; Thu, 14 Mar 2013 09:42:25 -0700 (PDT) Path: q9ni16600pba.1!nntp.google.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Thu, 14 Mar 2013 16:42:24 +0000 Organization: A noiseless patient Spider Message-ID: References: <8klywqh2pf$.1f949flc1xeia.dlg@40tude.net> <513f6e2f$0$6572$9b4e6d93@newsspool3.arcor-online.net> <513faaf7$0$6626$9b4e6d93@newsspool2.arcor-online.net> <51408e81$0$6577$9b4e6d93@newsspool3.arcor-online.net> <11rcs3gg4taww$.bylek8fsshyz$.dlg@40tude.net> <72lrnwimkypq.k20q71qpxioc$.dlg@40tude.net> <1h0o5cm5cjvoc$.1btj5nd38hlan$.dlg@40tude.net> Mime-Version: 1.0 Injection-Info: mx05.eternal-september.org; posting-host="72a7bb6120f61bc7749e29c9c2e535af"; logging-data="20799"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+POmFkChRTNd56+tYIGrbzZamKFhejARI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:JOUOa0g0QAGOb2MV4gDjyfYN71E= sha1:ag3P1fWodq1yMDK2RbmrMV+rEaw= Content-Type: text/plain Date: 2013-03-14T16:42:24+00:00 List-Id: "Dmitry A. Kazakov" writes: > On Wed, 13 Mar 2013 21:28:03 +0000, Simon Wright wrote: > >> "Dmitry A. Kazakov" writes: >> >>> You need (<>) as an ancestor of both mod <> and range <> in packages >>> that should be instantiated with either integer or modular type. >> >> I don't understand this. > > Let you have a generic package you wanted to be able o instantiate with > either Unsigned_16 or Integer. The formal generic type for that is formal > discrete. E.g. > > generic > type Index_Type is (<>); > type Element_Type is private; > package Generic_Array is ... Oh. When you used the word 'ancestor' I thought you were talking about inheritance or type derivation.