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-27 10:16:22 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!paradoxa.ogoense.net!lackawana.kippona.com!news.stealth.net!news2.euro.net!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: Using controlled types to trace program execution X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C7D1E7E.8535E82D@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: Mime-Version: 1.0 Date: Wed, 27 Feb 2002 17:59:26 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:20528 Date: 2002-02-27T17:59:26+00:00 List-Id: 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). -- Jeffrey Carter