comp.lang.ada
 help / color / mirror / Atom feed
From: Ian Douglas <ian@vionia.com>
Subject: Re: Newbie question # 2
Date: Thu, 6 Aug 2020 12:41:53 -0700 (PDT)	[thread overview]
Message-ID: <746c7d77-cd86-4609-a6a3-37a9d586adb2o@googlegroups.com> (raw)
In-Reply-To: <lyeeojd2nc.fsf@pushface.org>

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

  reply	other threads:[~2020-08-06 19:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06 18:40 Newbie question # 2 Ian Douglas
2020-08-06 18:56 ` Simon Wright
2020-08-06 19:41   ` Ian Douglas [this message]
2020-08-06 21:10     ` Simon Wright
2020-08-07 11:28       ` Ian Douglas
2020-08-06 19:20 ` Niklas Holsti
2020-08-06 19:45   ` Ian Douglas
2020-08-06 20:08     ` Niklas Holsti
2020-08-06 19:41 ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox