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,154942e4f1d1b8e9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!207.69.154.102.MISMATCH!elnk-atl-nf2!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: Matthew Heaney@MHEANEYIBMT43 Newsgroups: comp.lang.ada Subject: Re: Dynamically tagged expression required References: <2852224.m2vuDFxfOX@linux1.krischik.com> <3818406.kEZhMvudHC@linux1.krischik.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: Sun, 11 Dec 2005 00:43:05 GMT NNTP-Posting-Host: 24.149.57.125 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.atl.earthlink.net 1134261785 24.149.57.125 (Sat, 10 Dec 2005 16:43:05 PST) NNTP-Posting-Date: Sat, 10 Dec 2005 16:43:05 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:6818 Date: 2005-12-11T00:43:05+00:00 List-Id: Martin Krischik writes: > Well ever since I started to use the indefinite containers of the booch > components I never needed another new for tagged records. You can use any of the indefinite containers in the standard library, with the same effect. Some simple memory management ideas are to use a map, with the tag as the key and objects of that (specific) type as the element; or use a list, and use Splice to move objects off of one list and onto another.