comp.lang.ada
 help / color / mirror / Atom feed
From: bj.mooremr@gmail.com
Subject: Re: How can I create an empty array of a generic type?
Date: Sun, 14 Jul 2019 09:41:39 -0700 (PDT)
Date: 2019-07-14T09:41:39-07:00	[thread overview]
Message-ID: <93d508a9-96e0-4521-a407-eea17904b14a@googlegroups.com> (raw)
In-Reply-To: <287024ef-def7-43fe-8bb5-94cae597ffa7@googlegroups.com>

With Ada 2020, you'll also be able to write the following, which eliminates the need for specifying a null range;

Empty_Key  : constant Key_Type := [];

Brad


  reply	other threads:[~2019-07-14 16:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-13  3:36 How can I create an empty array of a generic type? b.mcguinness747
2019-07-13  4:11 ` Keith Thompson
2019-07-13  5:24   ` J-P. Rosen
2019-07-13 21:19     ` Keith Thompson
2019-07-14 11:09       ` reinert
2019-07-14 11:15     ` reinert
2019-07-14 11:27       ` Jeffrey R. Carter
2019-07-14 12:49       ` J-P. Rosen
2019-07-13 21:02 ` b.mcguinness747
2019-07-14 16:41   ` bj.mooremr [this message]
2019-10-16  2:03     ` Andrew Shvets
2019-10-16  4:49       ` Egil H H
replies disabled

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