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,start X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Equivalent to C++'s 'this' for tasks? Date: 1997/05/21 Message-ID: <5ltfe8$edr$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 242746387 Distribution: world X-XXMessage-ID: Organization: Royal Melbourne Institute of Technology Newsgroups: comp.lang.ada Date: 1997-05-21T00:00:00+00:00 List-Id: If I wanted to create a task... task type a; task type a_ptr is access all task; task type a; would it be possible in the body of a to construct/obtain a pointer to the task? Something like... task body a is me : a_ptr; begin me := ???'{Unchecked_}Access; end; You could then pass this information around and let other parts of the program query this object as to its state, or would I have to allocate the object dynamically and hand it the access value as part of an initialisation entry? Dale