comp.lang.ada
 help / color / mirror / Atom feed
From: "Samuel T. Harris" <u61783@gsde.hou.us.ray.com>
Subject: Re: Package name
Date: Thu, 17 May 2001 10:06:19 -0500
Date: 2001-05-17T10:06:19-05:00	[thread overview]
Message-ID: <3B03E8EB.523C5715@gsde.hou.us.ray.com> (raw)
In-Reply-To: 9e0lfh$e8k$1@nh.pace.co.uk

Marin David Condic wrote:
> 
> That might work nicely in a number of spots. It would be A Good Thing if
> there were some way of doing it in a way that Ada guarantees you get the
> string you want. The external_tag may not produce a result you want on all
> systems.
> 

Use Ada.Tags.External_Name instead.
It is a precisely define content which is a string
representing the fully expanded name of the type.

One can easily strip off the last .identifier to
get the fully expanded name of the enclosing declaration.

Another method is to establish a code pattern where
each declarative scope defines a known string constant
of the same name and use ASIS to auto-insert the string
declarations into code.

-- 
Samuel T. Harris, Principal Engineer
Raytheon, Aerospace Engineering Services
"If you can make it, We can fake it!"



  reply	other threads:[~2001-05-17 15:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-16 12:56 Package name Atle R�stad
2001-05-16 13:28 ` Preben Randhol
2001-05-16 13:46   ` Atle R�stad
2001-05-16 14:00   ` Marin David Condic
2001-05-16 16:45     ` Claude SIMON
2001-05-17 13:59       ` Marin David Condic
2001-05-17 15:06         ` Samuel T. Harris [this message]
2001-05-16 18:24     ` Randy Brukardt
2001-05-16 16:10 ` Jeffrey Carter
2001-05-16 17:08 ` David C. Hoos, Sr.
  -- strict thread matches above, loose matches on Subject: below --
2001-05-16 16:17 Beard, Frank
2001-05-16 18:11 ` tmoran
replies disabled

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