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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,196864e6c216ca4f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-25 11:11:21 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: How to Emulate C++ Macro with Static Local Variable? Date: Thu, 25 Sep 2003 13:13:22 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3F722C53.9020808@attbi.com> <5917f4d0.0309250459.59940bc9@posting.google.com> <3F7313BD.2050602@attbi.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:42918 Date: 2003-09-25T13:13:22-05:00 List-Id: "Robert I. Eachus" wrote in message news:3F7313BD.2050602@attbi.com... > It is an interesting question, and as a result I may actually advocate a > language change. If we had the equivalent of access discriminants for > Ada subprograms, this would be much cleaner. I think that the right > level of implementation is an attribute. So that > Some_Subprogram'Called_From gets you the called from address. It is not > the best solution for this problem, but there may be a way to define it > to be useful in doing stack tracebacks. (Which argues for the system > programming annex.) That's the idea behind AI-282. As I recall, we decided we didn't like the original proposal, but Bob and Tuck had a better idea. (Which we're still waiting for.) Randy.