From: Nige <nigel.scott@uk.thalesgroup.com>
Subject: Re: Using controlled types to trace program execution
Date: Thu, 28 Feb 2002 15:24:42 +0000
Date: 2002-02-28T15:22:59+00:00 [thread overview]
Message-ID: <3C7E4BBA.C842C8EB@uk.thalesgroup.com> (raw)
In-Reply-To: 3C7D1E7E.8535E82D@boeing.com
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.
next prev parent reply other threads:[~2002-02-28 15:24 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
2002-02-28 15:24 ` Nige [this message]
-- 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