comp.lang.ada
 help / color / mirror / Atom feed
From: Vinzent 'Gadget' Hoefler <ada.rocks@jlfencey.com>
Subject: Re: Thought this was funny
Date: Wed, 22 Oct 2003 10:48:51 +0200
Date: 2003-10-22T10:48:51+02:00	[thread overview]
Message-ID: <bn5gbp$tb05n$3@ID-175126.news.uni-berlin.de> (raw)
In-Reply-To: msbcpvougdhhlu5i4n7v4g3ql01toot1cs@4ax.com

Dmitry A. Kazakov wrote:

> X := Enumeration'Val (1 - Enumeration'Pos (X));

Well, for the special case Christoph mentioned:

|type Double_Buffer_Index is mod 2;

and a simple "+ 1" should do nicely.

This abstracts away the fact that a double buffer is just a special
case of a ring buffer. ;-)


Vinzent.



  reply	other threads:[~2003-10-22  8:48 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 [this message]
2003-10-23  2:17 ` Wes Groleau
  -- 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