From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Reading a C record from socket - chicken / egg problem - now complete
Date: Sat, 23 Nov 2002 14:54:25 GMT
Date: 2002-11-23T14:54:25+00:00 [thread overview]
Message-ID: <wcc65uoxroe.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 5ad0dd8a.0211230443.4b476252@posting.google.com
wojtek@power.com.pl (Wojtek Narczynski) writes:
> Another question is: can I declare non-contiguous enumeration
> subtypes, or only range x..y?
Only ranges.
>... I've been unable to figure out how to
> declare non-contiguous subtype, so I guess this isn't allowable, but
> why?
Perhaps perceived compiler complexity? Consider, for example, an array
indexed by such a subtype.
Also, the constraint-checking code could be rather slow for such a
subtype. I don't find that to be a good argument, since too-slow checks
can always be suppressed. But the original designers of Ada 83 tried to
avoid any kind of "costly" checking code.
I have often wanted this feature, too. Not to index arrays,
but to use in case statements, for example.
- Bob
next prev parent reply other threads:[~2002-11-23 14:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-23 12:43 Reading a C record from socket - chicken / egg problem - now complete Wojtek Narczynski
2002-11-23 14:54 ` Robert A Duff [this message]
2002-11-23 17:31 ` Simon Wright
2002-12-05 16:54 ` Reading a C record from socket - chicken / egg problem Wojtek Narczynski
2002-11-23 18:55 ` Reading a C record from socket - chicken / egg problem - now complete SteveD
2002-11-28 21:33 ` Craig Carey
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox