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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d6413a22d4aaecda,start X-Google-Attributes: gid103376,public From: Chris Sparks Subject: Program identification Date: 1996/08/29 Message-ID: #1/1 X-Deja-AN: 177564612 sender: Ada programming language comments: cc: sparks@billings.aisf.com newsgroups: comp.lang.ada x-mailer: Elm [revision: 112.6] Date: 1996-08-29T00:00:00+00:00 List-Id: 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?