From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: questions from a newbie
Date: 15 Jul 2004 17:09:37 +0200
Date: 2004-07-15T17:09:37+02:00 [thread overview]
Message-ID: <pl3c3tcnny.fsf@sparre.crs4.it> (raw)
In-Reply-To: 40f684a8@dnews.tpgi.com.au
Zork wrote:
> q1) can:
>
> c : character;
>
> if c in 'A'..'Z' or c in 'a'..'z' or c in '0'..'9' then
> ....
> end if;
>
> be written as something like:
>
> c : character;
>
> if c in ('A'..'Z', 'a'..'z', '0'..'9') then
> ....
> end if;
Sort of:
case C in
when 'A' .. 'Z' | 'a' .. 'z' | '0' .. '9' =>
....
when others =>
null;
end case;
Greetings,
Jacob
--
"Banning open source would have immediate, broad, and
strongly negative impacts on the ability of many sensitive
and security-focused DOD groups to protect themselves
against cyberattacks" -- Mitre Corp.
next prev parent reply other threads:[~2004-07-15 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-15 13:20 questions from a newbie zork
2004-07-15 13:35 ` Marius Amado Alves
2004-07-15 13:45 ` Steve
2004-07-15 14:44 ` Georg Bauhaus
2004-07-15 15:09 ` Jacob Sparre Andersen [this message]
2004-07-15 15:52 ` zork
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox