From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 12 Aug 93 15:28:59 GMT From: eachus@mitre-bedford.arpa (Robert I. Eachus) Subject: Re: Unconstrained arrays Message-ID: List-Id: In article <9308111528.aa04642@Paris.ics.uci.edu> kanderso@mabillon.ICS.UCI.EDU (Kenneth Anderson) writes: > I have declared the following type (DynamicString is an imported type) > type Str_Array is array (Natural range <>) of DynamicString; > Later when I try to declare objects of this type, the compiler > likes this...but it does not like this > Viewers : str_array(1 .. 1) := (Create("text_artist")); > Can someone help me out on this? Why can't I declare AND initialize > an array of only one element? You can, but a single value in parentheses is treated as a parenthesized expression not an aggregate (see 4.3(4)). Try using named notation: Viewers : str_array(1 .. 1) := (1 => Create("text_artist")); -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...