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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9e5138de1ea5afeb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-28 07:23:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed.icl.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!news!not-for-mail From: Nige Newsgroups: comp.lang.ada Subject: Re: Using controlled types to trace program execution Date: Thu, 28 Feb 2002 15:24:42 +0000 Organization: Thales Message-ID: <3C7E4BBA.C842C8EB@uk.thalesgroup.com> References: <3C7D1E7E.8535E82D@boeing.com> NNTP-Posting-Host: sswc014.int.rdel.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: rdel.co.uk 1014909779 14206 172.16.10.25 (28 Feb 2002 15:22:59 GMT) X-Complaints-To: postmaster@uk.thalesgroup.com NNTP-Posting-Date: 28 Feb 2002 15:22:59 GMT X-Mailer: Mozilla 4.77 [en] (X11; U; SunOS 5.6 sun4m) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:20571 Date: 2002-02-28T15:22:59+00:00 List-Id: Jeffrey Carter wrote: > > Christoph Grein wrote: > > > > Dynamic allocation and deallocation are not necessary: > > > > generic > > > > Unit_Name: String; > > > > package Trace is > > > > private > > > > X: aliased String := Unit_Name; > > Follower: T (X'Access); > > > > end Trace; > > And you can use the Unit_Name constant from PragmARC.Reflection (from > the PragmAda Reusable Components) to avoid manually supplying the unit > name (and forgetting to change it when the nesting changes). Thanks guys - I've come up with a hybrid which seems to do the job for me. Nige.