comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
To: <comp.lang.ada@ada.eu.org>
Subject: Re: Stream_Element_Array and an empty array
Date: Wed, 22 Aug 2001 09:28:20 -0500
Date: 2001-08-22T09:28:20-05:00	[thread overview]
Message-ID: <mailman.998490452.3193.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: pan.2001.08.22.16.19.49.568.13195@zamek.gda.pl

You do

A := (1 .. 0 => <any-value>);

The value of <any-value> is immaterial because you're
assigning zero elements of that value.

----- Original Message -----
From: <=?ISO-8859-2?q?=22Micha=B3=@ada.eu.org>; <Nowikowski@ada.eu.org>; <"
<godfryd@zamek.gda.pl>"@ada.eu.org>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Wednesday, August 22, 2001 9:19 AM
Subject: Re: Stream_Element_Array and an empty array


> W artykule <stk7zw2o60.fsf@aonix.fr>, "Reivilo Snuved"
> <odevuns@iname.junk.com> napisaďż˝(a):
>
> > Samuel Tardieu <sam@rfc1149.net> writes:
> >
> >>   A : Ada.Streams.Stream_Element_Array (0 .. -1);
> >>
> >> A'Length being defined as A'Last - A'First + 1, you will get a zero
> >> length.
>
> ok, but it is variable A array which length is 0;
> i want to substitute a value;
>
> when you have array A with length=5, you do:
> A := (1, 2, 3, 4, 5);
>
> what to do when A's length is 0
> A := (); -- doesnt work
>
> --
> |  Michal Nowikowski <godfryd@zamek.gda.pl>
> |  Registered Linux User #165183
> |  http://www.glc.zamek.gda.pl/
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>




  parent reply	other threads:[~2001-08-22 14:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-22 13:34 Stream_Element_Array and an empty array 
2001-08-22 13:42 ` Samuel Tardieu
2001-08-22 13:56   ` Reivilo Snuved
2001-08-22 14:19     ` 
2001-08-22 14:25       ` 
2001-08-22 14:28         ` Florian Weimer
2001-08-22 14:37           ` 
2001-08-22 14:28       ` David C. Hoos [this message]
2001-08-22 15:13       ` Claude SIMON
2001-08-22 14:54   ` Ted Dennison
2001-08-22 14:22 ` Samuel T. Harris
2001-08-23  8:37   ` Philip Anderson
2001-08-23 14:02     ` 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