* Constants
@ 2000-04-13 0:00 version_x
2000-04-13 0:00 ` Constants Ken Garlington
2000-04-13 0:00 ` Constants Geoff Bull
0 siblings, 2 replies; 3+ messages in thread
From: version_x @ 2000-04-13 0:00 UTC (permalink / raw)
is it possible to specifiy a constant as a ranger of integers between to
numbers?
rees.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Constants
2000-04-13 0:00 Constants version_x
@ 2000-04-13 0:00 ` Ken Garlington
2000-04-13 0:00 ` Constants Geoff Bull
1 sibling, 0 replies; 3+ messages in thread
From: Ken Garlington @ 2000-04-13 0:00 UTC (permalink / raw)
"version_x" <version_x@hotmail.com> wrote in message
news:955594340.98330@srv1.space.net.au...
> is it possible to specifiy a constant as a ranger of integers between to
> numbers?
If you're using the term "constant" in an informal sense; i.e. "something
that won't change after you've defined it", I suppose any of the following
might be what you're looking for...
type Ranger_of_Integers is range 1 .. 10;
subtype Ranger_of_Integers is Integer range 1 .. 10;
Ranger_of_Integers: constant array (1..2) of Integer := (1,10);
type Ranger_of_Integers is record
First: Integer := 1;
Last: Integer := 10;
end record;
etc...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Constants
2000-04-13 0:00 Constants version_x
2000-04-13 0:00 ` Constants Ken Garlington
@ 2000-04-13 0:00 ` Geoff Bull
1 sibling, 0 replies; 3+ messages in thread
From: Geoff Bull @ 2000-04-13 0:00 UTC (permalink / raw)
version_x wrote:
>
> is it possible to specifiy a constant as a ranger of integers between to
> numbers?
>
> rees.
no
but if you are trying to get a name for a range, a subtype
might be what you are looking for.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-04-13 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-13 0:00 Constants version_x
2000-04-13 0:00 ` Constants Ken Garlington
2000-04-13 0:00 ` Constants Geoff Bull
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox