comp.lang.ada
 help / color / mirror / Atom feed
From: reinert <reinkor@gmail.com>
Subject: Re: How can I create an empty array of a generic type?
Date: Sun, 14 Jul 2019 04:15:41 -0700 (PDT)
Date: 2019-07-14T04:15:41-07:00	[thread overview]
Message-ID: <a17e8dbe-6785-4b09-b9c6-e50164d10062@googlegroups.com> (raw)
In-Reply-To: <qgbptp$u95$1@dont-email.me>

lørdag 13. juli 2019 07.24.10 UTC+2 skrev J-P. Rosen følgende:
.....
> You can avoid it:
>    Empty_Key  : constant Key_Type(1..0) := (others => <>);
> 

But Key_Type is an array indexed by Positive (> 0).  
The zero in "Key_Type(1..0)" is not so intuitive for me (outside the range) ?

reinert

  parent reply	other threads:[~2019-07-14 11:15 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 [this message]
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
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