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 X-Google-Thread: 103376,c24a60e907705f00 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: is_callable(environment)? Date: 1998/07/23 Message-ID: <6p7ri9$9ra$2@platane.wanadoo.fr>#1/1 X-Deja-AN: 374248573 Content-Transfer-Encoding: 8bit References: <35b58fd0.21988014@SantaClara01.news.InterNex.Net> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Adalog Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-07-23T00:00:00+00:00 List-Id: I am puzzled by Robert's response here. Every task has a task ID, and I don't think there is something in the reference manual that says that the environment task is treated differently. C.7.1(21) is a *note*, not an *implementation permission*. My understanding is that it points out that if the current task is the environment task, then calling Current_Task will return its task-ID, and therefore that it can be used safely even with the environment task. Therefore, I would say that the proposed program should always work. -- ---------------------------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://perso.wanadoo.fr/adalog Robert Dewar a �crit dans le message ... ><if I'm just very lucky, or if most compilers take the allowance of >C.7.1(21) and allow 'caller to return a task_id of the environment >task, and if is_callable on the environment task becomes false when it >reaches the end of the main program and before its dependent tasks >have terminated and library level controlled objects have finalized. >>>> > >You are lucky, there is no reason to think this would always work! >