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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada.Containers.Doubly_Linked_Lists References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1170648182 12.201.97.213 (Mon, 05 Feb 2007 04:03:02 GMT) NNTP-Posting-Date: Mon, 05 Feb 2007 04:03:02 GMT Organization: AT&T ASP.att.net Date: Mon, 05 Feb 2007 04:03:02 GMT Xref: g2news2.google.com comp.lang.ada:8952 Date: 2007-02-05T04:03:02+00:00 List-Id: Carroll, Andrew wrote: > > Okay, so, just out of curiosity, what do I do if I need the Node_type > within Ada.Containers.Doubly_Linked_Lists to have an additional > "attribute"? So instead of just having > > type Node_Type is limited record > Element : Element_Access; > Next : Node_Access; > Prev : Node_Access; > end record; There is nothing named Node_Type in Ada.Containers.Doubly_Linked_Lists. See ARM-0X A.18.3 for the definition of this generic package: http://www.adaic.org/standards/05rm/html/RM-A-18-3.html An implementation may have something named Node_Type, but that would not be in the visible part of the specification, and so unavailable to you as a client of the generic or instantiations of it. Another implementation may be completely different, so relying on information about the implementation would be completely non-portable. -- Jeff Carter "Now go away or I shall taunt you a second time." Monty Python & the Holy Grail 07