* Re: Null range in a single-member enumaration. How to?
[not found] <JO3G8.1472$EZ5.227090@news.xtra.co.nz>
@ 2002-05-20 13:30 ` Pat Rogers
2002-05-20 13:40 ` David C. Hoos
2002-05-20 14:00 ` Frank J. Lhota
1 sibling, 1 reply; 5+ messages in thread
From: Pat Rogers @ 2002-05-20 13:30 UTC (permalink / raw)
"AG" <a_n_g@x_t_r_a.c_o.n_z> wrote in message
news:JO3G8.1472$EZ5.227090@news.xtra.co.nz...
<snip>
> type x is (a); -- (a, b);
>
> type y is array (x'last..x'first) of boolean; -- Works fine for (a, b); but
not (a);
Why not just
type y is array ( x ) of boolean;
???
---
Patrick Rogers Consulting and Training in:
http://www.classwide.com Real-Time/OO Languages
progers@classwide.com Hard Deadline Schedulability Analysis
(281)648-3165 Software Fault Tolerance
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Null range in a single-member enumaration. How to?
2002-05-20 13:30 ` Null range in a single-member enumaration. How to? Pat Rogers
@ 2002-05-20 13:40 ` David C. Hoos
2002-05-20 14:00 ` Pat Rogers
2002-05-20 14:03 ` Pat Rogers
0 siblings, 2 replies; 5+ messages in thread
From: David C. Hoos @ 2002-05-20 13:40 UTC (permalink / raw)
----- Original Message -----
From: "Pat Rogers" <progers@classwide.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Monday, May 20, 2002 8:30 AM
Subject: Re: Null range in a single-member enumaration. How to?
> "AG" <a_n_g@x_t_r_a.c_o.n_z> wrote in message
> news:JO3G8.1472$EZ5.227090@news.xtra.co.nz...
> <snip>
> > type x is (a); -- (a, b);
> >
> > type y is array (x'last..x'first) of boolean; -- Works fine for (a, b);
but
> not (a);
>
> Why not just
>
> type y is array ( x ) of boolean;
The question was how to declare an _empty_ array, when the index
type has only one value.
>
> ???
>
> ---
> Patrick Rogers Consulting and Training in:
> http://www.classwide.com Real-Time/OO Languages
> progers@classwide.com Hard Deadline Schedulability Analysis
> (281)648-3165 Software Fault Tolerance
>
>
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Null range in a single-member enumaration. How to?
[not found] <JO3G8.1472$EZ5.227090@news.xtra.co.nz>
2002-05-20 13:30 ` Null range in a single-member enumaration. How to? Pat Rogers
@ 2002-05-20 14:00 ` Frank J. Lhota
1 sibling, 0 replies; 5+ messages in thread
From: Frank J. Lhota @ 2002-05-20 14:00 UTC (permalink / raw)
> Was there an elegant solution ever found?
No, there never was. OTOH, the issue only seems to come up in hypothetical
situations.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-05-20 14:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <JO3G8.1472$EZ5.227090@news.xtra.co.nz>
2002-05-20 13:30 ` Null range in a single-member enumaration. How to? Pat Rogers
2002-05-20 13:40 ` David C. Hoos
2002-05-20 14:00 ` Pat Rogers
2002-05-20 14:03 ` Pat Rogers
2002-05-20 14:00 ` Frank J. Lhota
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox