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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 08:21:19 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!oleane.net!oleane!setranews.setra.fr!not-for-mail From: Claude SIMON Newsgroups: comp.lang.ada Subject: Re: Stream_Element_Array and an empty array Date: Wed, 22 Aug 2001 17:13:23 +0200 Organization: SETRA - CTOA Message-ID: <3B83CC13.4E92D726@setra.fr> References: NNTP-Posting-Host: calamar.setra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: setranews.setra.fr 998493099 17263 161.48.101.33 (22 Aug 2001 15:11:39 GMT) X-Complaints-To: usenet@setranews.setra.fr NNTP-Posting-Date: 22 Aug 2001 15:11:39 GMT X-Mailer: Mozilla 4.7 [fr] (WinNT; I) X-Accept-Language: fr Xref: archiver1.google.com comp.lang.ada:12241 Date: 2001-08-22T15:11:39+00:00 List-Id: ""Micha�owikowski\" \"" a �crit : > 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 > You do nothing, that is : you put no element in A :-) or if you want to do something : A := (1 .. 0 => ...); > > -- > | Michal Nowikowski > | Registered Linux User #165183 > | http://www.glc.zamek.gda.pl/