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 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.IIfIc3CB/+nKo+wKq8+a0g.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Newbie question # 2 Date: Thu, 06 Aug 2020 22:10:49 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <8b2858e0-e69c-4a22-ad51-a6a7c51e7a7do@googlegroups.com> <746c7d77-cd86-4609-a6a3-37a9d586adb2o@googlegroups.com> NNTP-Posting-Host: IIfIc3CB/+nKo+wKq8+a0g.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cancel-Lock: sha1:xrl4f7G4o46ZS+sDuj0B08Eznh4= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:59680 List-Id: Ian Douglas writes: > Okay that's a new construct I haven't come across yet. Let me see what > I can dig up on that. ARM 18.14 The Generic Package Containers.Indefinite_Ordered_Maps http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-A-18-14.html which is like A.18.6 The Generic Package Containers.Ordered_Maps http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-A-18-6.html where almost all the operations are defined; the reason for the Indefinite version is that the key and element types can be indefinite, whih you probably wouldn't need if it wasn't that the key in my suggestion is of type String, which is indefinite (i.e. you can have key strings, or in your case names, of different lengths). There's a discussion of maps in the Rationale for Ada 2005 section 8.3. https://www.adaic.org/resources/add_content/standards/05rat/html/Rat-8-3.html