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-Thread: 103376,ba2aaa9cb4d25085 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.germany.com!newsfeed3.funet.fi!newsfeeds.funet.fi!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Wed, 07 Feb 2007 09:16:38 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada.Containers.Doubly_Linked_Lists References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <45c97b44$0$22514$39db0f71@news.song.fi> Organization: TDC Song Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1170832196 news.song.fi 22514 81.17.205.61:32788 X-Complaints-To: abuse@song.fi Xref: g2news2.google.com comp.lang.ada:9052 Date: 2007-02-07T09:16:38+02:00 List-Id: Carroll, Andrew wrote: > Okay, got the packages "instantiated" and all that and > successfully appended an "element" to my list. Good! > How do I print the length to the console? Assuming your list package is named Thing_Lists and your list object is named Things, of type Thing_Lists.List: Ada.Text_IO.Put_Line ( "The length is" & Ada.Containers.Count_Type'Image (Thing_Lists.Length (Things))); > Where is count_type defined? In the package Ada.Containers. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .