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 X-Received: by 2002:ad4:4908:: with SMTP id bh8mr10269349qvb.218.1596742913743; Thu, 06 Aug 2020 12:41:53 -0700 (PDT) X-Received: by 2002:a0c:a81a:: with SMTP id w26mr11042862qva.52.1596742913530; Thu, 06 Aug 2020 12:41:53 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 6 Aug 2020 12:41:53 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=165.73.112.105; posting-account=FlDDTgoAAAB5iCuW7fM5pP_RHQGC8krX NNTP-Posting-Host: 165.73.112.105 References: <8b2858e0-e69c-4a22-ad51-a6a7c51e7a7do@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <746c7d77-cd86-4609-a6a3-37a9d586adb2o@googlegroups.com> Subject: Re: Newbie question # 2 From: Ian Douglas Injection-Date: Thu, 06 Aug 2020 19:41:53 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59677 List-Id: On Thursday, 6 August 2020 20:56:25 UTC+2, Simon Wright wrote: > > I'd think of a record type to contain the properties, and then a map > from object name to properties: Yes, the variables are actually records. > > package Object_Maps is new Ada.Containers.Indefinite_Ordered_Maps > (Key_Type => String, > Element_Type => Properties); > > Objects : Object_Maps.Map; Okay that's a new construct I haven't come across yet. Let me see what I can dig up on that. Thanks, Ian