From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,4e2dfdc3b0f2775d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-22 07:27:59 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Stream_Element_Array and an empty array Date: Wed, 22 Aug 2001 09:28:20 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 998490478 33091 137.194.161.2 (22 Aug 2001 14:27:58 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 22 Aug 2001 14:27:58 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:12231 Date: 2001-08-22T09:28:20-05:00 You do A := (1 .. 0 => ); The value of is immaterial because you're assigning zero elements of that value. ----- Original Message ----- From: <=?ISO-8859-2?q?=22Micha=B3=@ada.eu.org>; ; <" "@ada.eu.org> Newsgroups: comp.lang.ada To: Sent: Wednesday, August 22, 2001 9:19 AM Subject: Re: Stream_Element_Array and an empty array > W artykule , "Reivilo Snuved" > napisa�(a): > > > Samuel Tardieu 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 > | 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 >