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,abaec53fd41aec4e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: I don't know what the compiler wants to tell me References: <20051103214759.6d049f90@localhost> In-Reply-To: <20051103214759.6d049f90@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 04 Nov 2005 05:12:12 GMT NNTP-Posting-Host: 67.3.210.212 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1131081132 67.3.210.212 (Thu, 03 Nov 2005 21:12:12 PST) NNTP-Posting-Date: Thu, 03 Nov 2005 21:12:12 PST Xref: g2news1.google.com comp.lang.ada:6173 Date: 2005-11-04T05:12:12+00:00 List-Id: Thomas Ruschival wrote: > hello2b.adb:48:18: left hand of assignment must not be limited What it means is that assignment (":=") is not defined for limited types. Task types are limited types. > while Irq = False -- infinite loop until an external task does This (Irq = False) generally indicates a lack of understanding of Booleans. Better is while not Irq loop That uses negative logic. Positive logic is easier to understand than negative, so loop exit when Irq; is better still. However, best is to eliminate Irq altogether and have loop ... select accept Interrupt; exit; or ... end loop; Often, naming loops can make them easier to read and understand: Wait_For_Interrupt : loop ... exit Wait_For_Interrupt; ... end loop Wait_For_Interrupt; > Controlled : PrinterTask; -- task To be controlled Controlled is an object of a task type; an object of a task type is a task. > Controlled := ToControl; This is illegal, because Controlled is limited. -- Jeff Carter "Now go away or I shall taunt you a second time." Monty Python & the Holy Grail 07