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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:8d7:: with SMTP id 206mr9482404qki.238.1572600894957; Fri, 01 Nov 2019 02:34:54 -0700 (PDT) X-Received: by 2002:a9d:3675:: with SMTP id w108mr7996050otb.81.1572600894737; Fri, 01 Nov 2019 02:34:54 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!j16no10067873qtl.0!news-out.google.com!p4ni208qtu.1!nntp.google.com!j16no10067865qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Nov 2019 02:34:54 -0700 (PDT) In-Reply-To: <5dbbeda6$0$1458$e4fe514c@news.kpn.nl> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=185.22.143.114; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 185.22.143.114 References: <5dbbeda6$0$1458$e4fe514c@news.kpn.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6550e9fc-5c52-4f48-9b3d-bb543f88c1d9@googlegroups.com> Subject: Re: Anonymous array not allowed as components From: AdaMagica Injection-Date: Fri, 01 Nov 2019 09:34:54 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57408 Date: 2019-11-01T02:34:54-07:00 List-Id: Am Freitag, 1. November 2019 09:32:42 UTC+1 schrieb L Dries: > I have an need for an array of Unbounded_Strings in which i define the > elements. > > I declared it as: > type Container is record ... > Debug_Proc : array (1 .. nr_Proc) of Unbounded_String := > (Debug_Proc(Lan), > To_Unbounded_String("Only"), > To_Unbounded_String("Empty_Buffer"), > ... > etc. end record; > > Then I got the message: > > 65:22 Anonymous array not allowed as components > This results i a position just before "array" Reading the compiler message, I get the impression that your Debug_Prog is a component of another record. Just define a matching type and use an object of this type as component.