comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <groleau@freeshell.org>
Subject: Re: Thought this was funny
Date: Wed, 22 Oct 2003 21:17:38 -0500
Date: 2003-10-22T21:17:38-05:00	[thread overview]
Message-ID: <cbGcnf0XW5aDpwqiU-KYjQ@gbronline.com> (raw)
In-Reply-To: <mailman.164.1066805910.25614.comp.lang.ada@ada-france.org>

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




  parent reply	other threads:[~2003-10-23  2:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22  6:44 Thought this was funny christoph.grein
2003-10-22  7:31 ` Dmitry A. Kazakov
2003-10-22  8:48   ` Vinzent 'Gadget' Hoefler
2003-10-23  2:17 ` Wes Groleau [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-21 19:49 Xenos
2003-10-21 20:26 ` Ching Bon Lam
2003-10-21 20:44   ` Lutz Donnerhacke
2003-10-21 20:36 ` Ed Falis
2003-10-21 21:08 ` Stephane Richard
2003-10-21 22:16   ` Robert I. Eachus
2003-10-21 22:24     ` Ed Falis
2003-10-22  0:36       ` Robert I. Eachus
2003-10-22  1:37         ` Ed Falis
2003-10-22  3:56           ` Robert I. Eachus
2003-10-22 13:44             ` Ed Falis
2003-10-21 23:13     ` Georg Bauhaus
2003-10-22  0:23     ` Alexandre E. Kopilovitch
2003-10-21 22:23   ` Simon Wright
2003-10-22  2:57 ` Steve
2003-10-22  6:26 ` Anders Wirzenius
2003-10-22  6:36 ` Vinzent 'Gadget' Hoefler
2003-10-22 12:38   ` Christopher J. Henrich
2003-10-22 15:00 ` Martin Dowie
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox