comp.lang.ada
 help / color / mirror / Atom feed
From: jakrzy@ss2.magec.com (James A. Krzyzanowski)
Subject: Re: Program identification
Date: 1996/09/13
Date: 1996-09-13T00:00:00+00:00	[thread overview]
Message-ID: <Dxorp0.Bon@most.fw.hac.com> (raw)
In-Reply-To: INFO-ADA%96082914161709@LISTSERV.NODAK.EDU


Chris Sparks (sparks@AISF.COM) wrote:
: Does anyone know of a way to determine the program name within a program
: without explictly making a constant for it.  If there isn't a way then
: maybe a new attribute should be made for the next version of Ada, namely:

: P'Identity which returns a string, P is a program unit

: I am using this information as part of an exception reporter system.

: BTW these would be helpful too:

: P'Location which returns a string, P is a program unit and the string would
: contain the current line number in the source code, or maybe even the
: previous line number (for exception processing).

: Any thoughts?

Using Alsys Ada on an HP/UX platform, it would be...

System_Environment.Arg_Value (Index => 0);

--
Not necessarily the opinion of the company...
--
---------------------------------------------------------------------------
         James A. Krzyzanowski - Senior Software Engineer - AFATDS
   Hughes Defense Communications * Fort Wayne, IN 46808 * (219) 429-6446
   ^^^ the company formerly known as Magnavox Electronic Systems Company
Internet: jakrzy@most.fw.hac.com * AOL: JimShiz@AOL.com * MOST: jakrzy@most
     "I'd rather be right than politically correct !!!" - Rush is Right
---------------------------------------------------------------------------




  parent reply	other threads:[~1996-09-13  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-29  0:00 Program identification Chris Sparks
1996-08-31  0:00 ` Robert A Duff
1996-08-31  0:00   ` Ray Blaak
1996-08-31  0:00     ` Robert A Duff
1996-08-31  0:00 ` Ray Blaak
1996-08-31  0:00 ` Dale Stanbrough
1996-09-02  0:00 ` Stephen & Tammy House
1996-09-03  0:00 ` David C. Hoos, Sr.
1996-09-13  0:00 ` James A. Krzyzanowski [this message]
1996-09-14  0:00   ` Ken Garlington
1996-09-15  0:00     ` Larry Kilgallen
  -- strict thread matches above, loose matches on Subject: below --
1996-08-31  0:00 tmoran
1996-08-31  0:00 ` Robert A Duff
1996-09-02  0:00 tmoran
1996-09-03  0:00 ` Joel VanLaven
replies disabled

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