From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Renaissance-Ada, a toolset for legacy Ada software, made open source
Date: Fri, 28 Jan 2022 14:58:09 +0100 [thread overview]
Message-ID: <st0sph$6kf$1@dont-email.me> (raw)
In-Reply-To: <lytudo11pv.fsf@pushface.org>
On 2022-01-28 13:31, Simon Wright wrote:
>
> I found myself using a case statement rather than an if so as to avoid a
> 'use type': U is an Interfaces.Unsigned_16,
>
> case U is
> when 1 => do one thing;
> when others => do something else;
> end case;
These days you can use "in"
if U in 1 then
--
Jeff Carter
"Write clearly--don't sacrifice clarity for 'efficiency.'"
Elements of Programming Style
186
next prev parent reply other threads:[~2022-01-28 13:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-27 12:32 Renaissance-Ada, a toolset for legacy Ada software, made open source Pierre van de Laar
2022-01-27 12:55 ` Luke A. Guest
2022-01-28 2:23 ` Andreas ZEURCHER
2022-01-28 10:10 ` Luke A. Guest
2022-01-28 11:42 ` Jesper Quorning
2022-01-28 12:31 ` Simon Wright
2022-01-28 13:58 ` Jeffrey R.Carter [this message]
2022-01-28 20:01 ` Stephen Leake
2022-01-28 10:27 ` Simon Wright
2022-01-29 9:26 ` G.B.
2022-01-29 9:49 ` AdaMagica
2022-01-29 18:35 ` G.B.
2022-01-29 19:43 ` Simon Wright
2022-01-30 16:16 ` AdaMagica
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox