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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d709f16086c9389b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.albasani.net!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada Subject: Re: null array constant in Ada 83 Date: Tue, 23 Jun 2009 05:30:25 -0400 Organization: albasani.net Message-ID: References: <4a4098dd$1@news.post.ch> Reply-To: FrankLho.NOSPAM@rcn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net bxoeMMogEOdqiNQNYLcdIGQWY7cLoUPYjvAnoyJ8bf8NT8Vb2Rs3TlrmSFVD4bCPCqAm+SD61m8eJQBqRrsRSp9Cj28z32vA9BDDtHSb+oNXh80zAy0Dr8MdDdbthi8R X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Tue, 23 Jun 2009 09:30:27 +0000 (UTC) X-User-ID: 0ZD9zl8yWIVzGZSRp5I7wLS5iQ7fiZe932ET0dGfzI8= In-Reply-To: <4a4098dd$1@news.post.ch> Cancel-Lock: sha1:nqo+NDyenG2m/b4C2g+JzSvkIG4= User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) X-NNTP-Posting-Host: 11i0+H0TaFwlv+O+8wjvSzJgIvo1W8N8JqQeF1HUPWk= Xref: g2news2.google.com comp.lang.ada:6573 Date: 2009-06-23T05:30:25-04:00 List-Id: Martin Krischik wrote: > Hi, > > maintaining old code is such a great fun. Anybody know what goes where > the 4 dots are (an appropriate N_Sel_List_Entry is declared). > > subtype T_Sel_Entries is Integer range 0 .. > Selection_Types.Max_Selection_Results; > > type T_Sel_List is array (T_Sel_Entries range <>) of T_Sel_List_Entry; > > N_Sel_List : constant T_Sel_List (1 .. 0) := ....; > > Or is it just plain impossible in Ada 83. > > Regards > > Martin If N_Sel_Entry_Value is a value of type N_Sel_List_Entry, then you could write N_Sel_List : constant T_Sel_List (1 .. 0) := (1 .. 0 => N_Sel_Entry_Value); The fact that you have to provide a component value that is never used is a well known annoyance. -- "All things extant in this world, Gods of Heaven, gods of Earth, Let everything be as it should be; Thus shall it be!" - Magical chant from "Magical Shopping Arcade Abenobashi" "Drizzle, Drazzle, Drozzle, Drome, Time for this one to come home!" - Mr. Wizard from "Tooter Turtle"