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-Thread: 103376,be6cbf679aee02c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed.news2me.com!newsfeed.icl.net!proxad.net!proxad.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Thu, 27 Oct 2005 11:39:46 +0200 From: Georg Bauhaus User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Why was it done this way ? References: <%DV7f.13378$rE2.2085@fe10.lga> In-Reply-To: <%DV7f.13378$rE2.2085@fe10.lga> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <43609fe2$0$22537$9b4e6d93@newsread4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 27 Oct 2005 11:37:38 MEST NNTP-Posting-Host: 46e9ff37.newsread4.arcor-online.net X-Trace: DXC=i9W>BJ_OP:ejgIfPPldTjW\KbG]kaMXU7^]5?JhlB^IFS=bT X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:5984 Date: 2005-10-27T11:37:38+02:00 List-Id: Heimlich Manure wrote: > Hello respectable group, > > This may be a silly question but I'm sure there was reasoning behind > allowing such : pragma Restrictions (No_Task_Hierarchy); > with Ada.Text_IO; > use Ada.Text_IO; > > procedure My_Example is > task type T1; > task type T2; > > task body T1 is > begin > Put_Line("Instantiating T2 from T1"); > declare > T_2_2 : T2; > ... > Question is, why is this legit ? I think it might be difficult in general to detect mutual recursion, but IANALL ...