comp.lang.ada
 help / color / mirror / Atom feed
From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: Constants
Date: 2000/04/13
Date: 2000-04-13T00:00:00+00:00	[thread overview]
Message-ID: <2JiJ4.24039$hh2.558683@news.flash.net> (raw)
In-Reply-To: 955594340.98330@srv1.space.net.au

"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...






  reply	other threads:[~2000-04-13  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-13  0:00 Constants version_x
2000-04-13  0:00 ` Ken Garlington [this message]
2000-04-13  0:00 ` Constants Geoff Bull
replies disabled

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