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 12:03:41 GMT From: cis.ohio-state.edu!pacific.mps.ohio-state.edu!math.ohio-state.edu!magnus. acs.ohio-state.edu!csn!news.den.mmc.com!iplmail!alcyone!rgilbert@ucbvax.Berkele y.EDU (Bob Gilbert) Subject: Re: Unconstrained arrays Message-ID: <1993Aug12.120341.28733@iplmail.orl.mmc.com> List-Id: In article aa06180@Paris.ics.uci.edu, kanderso@mabillon.ICS.UCI.EDU (Kenneth An derson) writes: >In comp.lang.ada you write: > >>In article <9308111528.aa04642@Paris.ics.uci.edu>, 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 >>> >> What about: > >> Viewers : srt_array(1) := (Create("text_artist")); > >> (just a hunch) > >Thanks for the reply. > >The compiler didn't like this either, it said... > > Viewers : str_array(1) := (Create("text_artist")); >-----------------------^A # ## >------------------------------^B # ## >--### A:error: RM (many references): range expected >--### B:error: RM 8.3: no visible identifier is of type str_array > >So I know (now) that I need a range for sure... > >Thanks again, > >Ken I think that I have seen something similar. If I remember right the following worked (although I don't think it was Sun Ada). Viewers : str_array(1..1) := (1 => Create("text_artist")); If this should work, I have no idea why? Let me know. Bob