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 13:03:08 GMT From: utcsri!csri.toronto.edu!blaak@uunet.uu.net (Raymond Blaak) Subject: Re: Unconstrained arrays Message-ID: <1993Aug12.090308.21608@jarvis.csri.toronto.edu> List-Id: kanderso@mabillon.ICS.UCI.EDU (Kenneth Anderson) writes: >>> >>> Viewers : str_array(1 .. 1) := (Create("text_artist")); >>> >>>--### A:error: RM 8.3: no visible identifier is of type str_array >>> This is an error because (Create("text_artist")) is an element not an array. >> What about: >> Viewers : srt_array(1) := (Create("text_artist")); This is an error because srt_array(1) is indexing notation, not array declaration notation. The trick is to force the compiler into thinking that Viewers is being assigned an array. Try this: Viewers : srt_array(1..1) := ( others => Create("text_artist")); or if you prefer, this: Viewers : srt_array(1..1) := ( 1 => Create("text_artist")); Cheers, Ray blaak@csri.toronto.edu