From: Duncan Sands <sands@topo.math.u-psud.fr>
To: comp.lang.ada@ada.eu.org
Subject: null range from 1 element discrete type
Date: 1999/11/19
Date: 1999-11-19T10:09:46+00:00 [thread overview]
Message-ID: <v03020900b45ad0cb9379F@[192.54.146.15]> (raw)
Suppose I have a discrete type (eg an enumeration type) T
containing just one element. I would like to define a subtype
with a null range. If T had more than one element, I could use
T'Last .. T'First, but this won't work here. How to get a null
range in this case?
As you may guess, I have a generic package that takes a discrete
type parameter T, and I want it to work correctly in this degenerate
case. At some point the package declares an array type, eg
type A is array (T range <>) of Float;
and I want to declare a null slice of type A. At this point
I run into the above problem...
Thanks for any help,
Duncan.
----
Laboratoire de Topologie et Dynamique, Batiment 425,
Universite de Paris-Sud, 91405 Orsay, France
sands@topo.math.u-psud.fr
----
next reply other threads:[~1999-11-19 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-19 0:00 Duncan Sands [this message]
1999-11-19 0:00 ` null range from 1 element discrete type Matthew Heaney
1999-11-19 0:00 ` Robert Dewar
1999-11-19 0:00 ` Robert I. Eachus
1999-11-22 0:00 ` Robert Dewar
1999-11-25 0:00 ` Niklas Holsti
1999-11-22 0:00 ` Robert A Duff
1999-11-22 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox