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,97a4ff0c3103bbb6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: Matthew Heaney@MHEANEYIBMT43 Newsgroups: comp.lang.ada Subject: Re: Deallocating list of polymorphic objects? References: <1164930027.758923.119740@h54g2000cwb.googlegroups.com> <1164953577.897306.271030@79g2000cws.googlegroups.com> From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 01 Dec 2006 12:40:47 GMT NNTP-Posting-Host: 24.149.57.125 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1164976847 24.149.57.125 (Fri, 01 Dec 2006 04:40:47 PST) NNTP-Posting-Date: Fri, 01 Dec 2006 04:40:47 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news2.google.com comp.lang.ada:7773 Date: 2006-12-01T12:40:47+00:00 List-Id: "Michael Rohan" writes: > This looks really tidy and clean. Yes, the indefinite container forms do come in handy sometimes. In this case it allows you to have a container of heterogenenous items. Note that I declared the List_Type as tagged so you could use the new distinguished-receiver syntax: with Lists; procedure List_Test is L : Lists.List_Type; begin L.Append (1); L.Append (-1.0); L.Append (2); L.Append (-2.0); end List_Test; Even more tidy!