From: Ted Dennison<dennison@telepath.com>
Subject: Re: enumration using integers?
Date: Thu, 19 Apr 2001 14:50:15 GMT
Date: 2001-04-19T14:50:15+00:00 [thread overview]
Message-ID: <HWCD6.2945$D4.288291@www.newsranger.com> (raw)
In-Reply-To: 3ADEC4E8.954B6830@emw.ericsson.se
In article <3ADEC4E8.954B6830@emw.ericsson.se>, Sven Nilsson says...
>
>If I want to make an enumerated type using integers, like:
>
> type Distance is (10, 20, 30, 40, 50);
>
>The compiler will complain about missing identifiers. How do I get the
>blasted machine to understand that the integers are the identifiers I
>want?
It understands perfectly what you want. It just won't allow you to do that. :-)
The next obvious question is *why* do you want to do this? What are you trying
to accomplish with an enumeration of integers?
---
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-19 14:50 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 [this message]
2001-04-20 5:22 ` Sven Nilsson
2001-04-20 13:57 ` Ted Dennison
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