From: Ted Dennison<dennison@telepath.com>
Subject: Re: Stream_Element_Array and an empty array
Date: Wed, 22 Aug 2001 14:54:43 GMT
Date: 2001-08-22T14:54:43+00:00 [thread overview]
Message-ID: <TIPg7.10489$2u.74211@www.newsranger.com> (raw)
In-Reply-To: mailman.998487810.2223.comp.lang.ada@ada.eu.org
In article <mailman.998487810.2223.comp.lang.ada@ada.eu.org>, Samuel Tardieu
says...
>
>On 22/08, =?ISO-8859-2?q?=22Micha=B3=@ada.eu.org 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?
>
>Like for any array:
>
> A : Ada.Streams.Stream_Element_Array (0 .. -1);
Keey your eyes open when using this though. I found at least one compiler (*not*
Gnat) that doesn't like to perform stream ops on 0 length arrays. That's a bug,
but it happened...
---
T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html
home email - mailto:dennison@telepath.com
next prev parent reply other threads:[~2001-08-22 14:54 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 [this message]
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