From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Aggregate with derived types. Date: Thu, 14 Sep 2023 23:37:47 +0200 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 14 Sep 2023 21:37:47 -0000 (UTC) Injection-Info: dont-email.me; posting-host="84a51ffbd2848b7d154f82a468fd34f6"; logging-data="2910203"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VSEhPkGvEu6XkEmvDmp2Lm6Rb9UUNyso=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cancel-Lock: sha1:RXZSJYA1WYQYT+DhJQR9vnZaQjA= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65653 List-Id: On 2023-09-14 22:00, Blady wrote: > > I wonder why the float list aggregate isn't inferred by the compiler and need > some help with a qualification. I'm not sure. But can't you simply write ML2 : My_Float_List2 := [-3.1, -6.7, 3.3, -3.14, 0.0]; ? I presume that My_Float_List2 inherits its aggregate definition from My_Float_List1. -- Jeff Carter "[M]any were collected near them, ... to enjoy the sight of a dead young lady, nay, two dead young ladies, for it proved twice as fine as the first report." Persuasion 155