comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: Using controlled types to trace program execution
Date: Wed, 27 Feb 2002 17:59:26 GMT
Date: 2002-02-27T17:59:26+00:00	[thread overview]
Message-ID: <3C7D1E7E.8535E82D@boeing.com> (raw)
In-Reply-To: mailman.1014811022.406.comp.lang.ada@ada.eu.org

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



  reply	other threads:[~2002-02-27 17:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-27 11:55 Using controlled types to trace program execution Christoph Grein
2002-02-27 17:59 ` Jeffrey Carter [this message]
2002-02-28 15:24   ` Nige
  -- strict thread matches above, loose matches on Subject: below --
2002-02-26 13:39 Nige
2002-02-26 18:26 ` tmoran
2002-02-27 11:44   ` Nige
2002-03-06 15:20 ` Matthew Heaney
2002-03-07  8:56   ` Nige
2002-03-07 16:43     ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox