From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 10 Aug 93 17:56:58 GMT From: vnet.IBM.COM@uunet.uu.net Subject: Re: Question on tasking... Message-ID: <19930810.110659.500@almaden.ibm.com> List-Id: In article: 8457 jjh@evb.com writes: >I have a question in the following program, > >procedure Main is > task type Task_Type; > type Task_Ptr is access Task_Type; > Task_Instance : Task_Type; >begin > block: > begin > Task_Instance := new Task_Type; > Task_Instance := null; > end; --> Does block wait until Task_Instance Terminates ???? >end Main; John, The block will not wait for the task to terminate as the access type to the task is in Main. LRM 9.4 1(a) mentions this. To get the block to wait, move the access type and variable declarations into a declare block. ***************************************** * Phil Dennis pdennis@vnet.ibm.com * * McDonnell Douglas ESC subbing to IBM * * * * Of course these opinions are mine, I * * can barely speak for myself, let alone* * McDonnell Douglas or IBM! * ******************************************