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,54d6c9fe8e306128 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.de!uio.no!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Mon, 05 Feb 2007 22:39:19 +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.Indefinite_Doubly_Linked_Lists References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <45c79601$0$24600$39db0f71@news.song.fi> Organization: TDC Song Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1170707969 news.song.fi 24600 81.17.205.61:32924 X-Complaints-To: abuse@song.fi Xref: g2news2.google.com comp.lang.ada:8981 Date: 2007-02-05T22:39:19+02:00 List-Id: Carroll, Andrew wrote: > [ ... ] > Package Attribute_List is new new > Ada.Containers.Indefinite_Doubly_Linked_Lists (Attribute); > > Type Table is record > Name: String(50); > Attributes: Attribute_List; ^^^^^^^^^^^^^^ Should be Attribute_List.List; because Attribute_List is a package that manages lists of Attributes, not a data type. The data type is Attribute_List.List. > End record > Package Table_List is new Ada.Containers.Indefinite_Doubly_Linked_Lists > (Table); I find it clearer to use names in plural form for packages that manage many objects of a given type. In this case I would use the name Attribute_Lists (not ..._List) for the package that manages lists of Attribute objects (each such list is an object of type Attribute_Lists.List). I would use the name Table_Lists for the package that manages lists of Table objects (each such list is an object of type Table_Lists.List). The language-defined Ada packages use the same convention, for example Ada.Containers.Doubly_Linked_Lists (not ..._List). Of course you can use any names you like. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .