comp.lang.ada
 help / color / mirror / Atom feed
From: "Samuel T. Harris" <u61783@gsde.hou.us.ray.com>
Subject: Re: Stream_Element_Array and an empty array
Date: Wed, 22 Aug 2001 09:22:55 -0500
Date: 2001-08-22T09:22:55-05:00	[thread overview]
Message-ID: <3B83C03F.8F1A6357@gsde.hou.us.ray.com> (raw)
In-Reply-To: pan.2001.08.22.15.34.27.59.13195@zamek.gda.pl

""Micha³owikowski\" \"" wrote:
> 
> Hello
> 
> I would like to sth like this:
> 
> A : Stream_Elemet_Array;
> A := <empty array>;
> 
> I dont know how to write empty array that A'Length = 0.
> Does anybody know?
> 
> Godfryd
> 

As others have shown, ...

a : stream_element_array (1..0);

... is the appropriate declaration.
However, you have included an assignment
to A and appear to want to know what
expression will yield such an array.

Given that in the above text A is a variable,
no assignment is necesary. If you must have
an assignment, or an initial expression
because it is constant, then you can
do the following ...

nil : constant stream_element_array (1..0) := (others => 0);
...
a := nil;

-- 
Samuel T. Harris, Senior Software Engineer II
Raytheon, Aerospace Engineering Services
"If you can make it, We can fake it!"



  parent reply	other threads:[~2001-08-22 14:22 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
2001-08-22 15:13       ` Claude SIMON
2001-08-22 14:54   ` Ted Dennison
2001-08-22 14:22 ` Samuel T. Harris [this message]
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