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,7e53a790494d0d3d X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Equivalent to C++'s 'this' for tasks? Date: 1997/05/22 Message-ID: #1/1 X-Deja-AN: 243107422 Distribution: world References: <5ltfe8$edr$1@goanna.cs.rmit.edu.au> Organization: The Mitre Corp., Bedford, MA. Newsgroups: comp.lang.ada Date: 1997-05-22T00:00:00+00:00 List-Id: In article <5ltfe8$edr$1@goanna.cs.rmit.edu.au> Dale Stanbrough writes: > If I wanted to create a task... > would it be possible in the body of a to construct/obtain > a pointer to the task? See C.7.1, package Ada.Task_Identification. If the Ada compiler you are using doesn't provide this package (it is in the Systems Programming Annex), then there are other messier solutions. However, since this package isn't all that hard to implement, I suspect that even with an Ada 83 compiler the easiest solution is to build it yourself. (You will probably have to look at some disassembled code to find the right run-time calls if the compiler implementor doesn't provide that documenation.) -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...