comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: Null range in a single-member enumaration. How to?
Date: Mon, 20 May 2002 08:40:01 -0500
Date: 2002-05-20T08:40:01-05:00	[thread overview]
Message-ID: <mailman.1021902062.10180.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: sT6G8.935$eZ2.142594119@newssvr11.news.prodigy.com


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




  reply	other threads:[~2002-05-20 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
2002-05-20 14:00     ` Pat Rogers
2002-05-20 14:03     ` Pat Rogers
2002-05-20 14:00 ` Frank J. Lhota
replies disabled

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