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-Language: ENGLISH,ASCII X-Google-Thread: 103376,5117b1b6391a0e06 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!news-stoc.telia.net!news-stoa.telia.net!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: A simple ADA puzzle (I haven't the answer) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: Date: Thu, 17 Jun 2004 10:39:53 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1087468793 217.209.116.179 (Thu, 17 Jun 2004 12:39:53 CEST) NNTP-Posting-Date: Thu, 17 Jun 2004 12:39:53 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:1610 Date: 2004-06-17T10:39:53+00:00 List-Id: Steve wrote: > Try something along the lines of > VAR : UNC_ARRAY_TYPE :=3D ( 1 =3D> ... ) That doesn't help. The compiler will still try to make room for bigger=20 values that may be assigned later. What you're trying to do can only be=20 done with discriminants inside the type declarations, like this: type UNC2_ARRAY_TYPE is array (INTEGER range <>) of STRING_TYPE(50); --=20 Bj=F6rn Persson jor ers @sv ge. b n_p son eri nu