From: Ted Dennison<dennison@telepath.com>
Subject: Re: enumration using integers?
Date: Fri, 20 Apr 2001 13:57:55 GMT
Date: 2001-04-20T13:57:55+00:00 [thread overview]
Message-ID: <DfXD6.4208$D4.428229@www.newsranger.com> (raw)
In-Reply-To: 3ADFC797.7D2D537D@emw.ericsson.se
In article <3ADFC797.7D2D537D@emw.ericsson.se>, Sven Nilsson says...
>
>in calculations. Something like this:
>
> type Distance is (10, 15, 20, 37);
> Dist : Distance := 15;
> Result : Integer := 0;
Hmm. I don't see anything in the above that couldn't have been done by making
Distance a sybtype of Integer. Are you saying that you just want an integer type
with "holes" in it, so that
Dist := 2;
would raise a Constraint_Error?
---
T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html
home email - mailto:dennison@telepath.com
next prev parent reply other threads:[~2001-04-20 13:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-19 10:58 enumration using integers? Sven Nilsson
2001-04-19 12:42 ` Marc A. Criley
2001-04-19 13:02 ` Philip Anderson
2001-04-19 14:50 ` Ted Dennison
2001-04-20 5:22 ` Sven Nilsson
2001-04-20 13:57 ` Ted Dennison [this message]
2001-04-20 14:35 ` Sven Nilsson
2001-04-20 15:50 ` Keith Thompson
2001-04-20 18:18 ` Ted Dennison
2001-04-20 15:52 ` Samuel T. Harris
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox