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: 103376,c3413343b4a6b2d6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: sv, sv-se, sv-fi, en-gb, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: generic Integer for modular type bound References: <416fd34a$0$29515$636a15ce@news.free.fr> In-Reply-To: <416fd34a$0$29515$636a15ce@news.free.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: Date: Fri, 15 Oct 2004 16:00:13 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1097856013 217.209.116.179 (Fri, 15 Oct 2004 18:00:13 CEST) NNTP-Posting-Date: Fri, 15 Oct 2004 18:00:13 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:5272 Date: 2004-10-15T16:00:13+00:00 List-Id: Stany Marcel wrote: > I tried to something like this: >=20 > generic > Size : Integer; >=20 > package MyGenPack > type MyType_T is mod Size; >=20 > but It doesn't works because Size is not static, so is there an other n= ice > way to do this in Ada. Maybe you can pass the type to the package? generic type MyType_T is mod <>; package MyGenPack --=20 Bj=F6rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu