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,126ce244c524526b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Tasking issues References: <1186851804.567302.223160@q4g2000prc.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1186956941 12.201.97.213 (Sun, 12 Aug 2007 22:15:41 GMT) NNTP-Posting-Date: Sun, 12 Aug 2007 22:15:41 GMT Organization: AT&T ASP.att.net Date: Sun, 12 Aug 2007 22:15:41 GMT Xref: g2news2.google.com comp.lang.ada:1419 Date: 2007-08-12T22:15:41+00:00 List-Id: anon wrote: > > As for "Get_Line immediately", thats an error, The Ada code can not > force the operating system or keyboard routine to abort. Try reading > RM 7.6.1 (23). > > 23 (20) Abort is deferred during certain operations related to controlled > types, as explained in 9.8. Those rules prevent an abort from causing a > controlled object to be left in an ill-defined state. There are no controlled objects in your code. > Since the keyboard routine in the operating system is one of the > following define in RM 9.8 > > 6 a protected action; > 11 an assignment operation to an object with a controlled part. > > or the 'Get_Line' procedure has connect to a secondary task { aka > operating system's keyboard routine } and the execution is define in > RM 9.8 as > > 16 the point where the execution initiates the activation of another > task; > or > 17 the end of the activation of a task; > > where the another task { aka operating system's keyboard routine }. There are no protected actions in your code. The only task activations in your code are of the 2 tasks Get_Name and Print_Something. -- Jeff Carter "Sir Lancelot saves Sir Gallahad from almost certain temptation." Monty Python & the Holy Grail 69