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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,715875e575230543 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-22 19:17:05 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.gbronline.com!news.gbronline.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 22 Oct 2003 21:17:02 -0500 Date: Wed, 22 Oct 2003 21:17:38 -0500 From: Wes Groleau Reply-To: groleau@freeshell.org Organization: Ain't no organization here! User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en, es-mx, pt-br, fr-ca MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Thought this was funny References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 69.9.86.173 X-Trace: sv3-caOi7CoPWrWxSHJFRix4RiGCk0VuVSsItFPcMyrLvpsbO9eNnp6pkaLmWOnj8WJquOC3AHn3/gQN4ub!+L3NeIPOqNRtfuOH5eIIpcSi8tLIvwovnDn+6JMqBi2h0TTvZZLWG6iwJ0biWcgS0vly+K0UxX3Q!9w== X-Complaints-To: abuse@gbronline.com X-DMCA-Complaints-To: abuse@gbronline.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:1478 Date: 2003-10-22T21:17:38-05:00 List-Id: christoph.grein@eurocopter.com wrote: > Switching with a two-valued enumeration is not so elegant, you need a switch > table or a case statement instead of the simple "X := not X;". Next_Buffer : array (Buffer_Index) of Buffer_Index := (A => B, B => A); Buffer := Next_Buffer (Buffer); Of course what you really want to do is add "++" to Ada and override it to act as a toggle. (I'm just trying to comply with the subject line) -- Wes Groleau Nobody believes a theoretical analysis -- except the guy who did it. Everybody believes an experimental analysis -- except the guy who did it. -- Unknown