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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,aab48c153d1e916b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.jgaa.com!news.hacking.dk!pnx.dk!munin.nbi.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: questions from a newbie Date: 15 Jul 2004 17:09:37 +0200 Organization: Munin Sender: sparre@sparre.crs4.it Message-ID: References: <40f684a8@dnews.tpgi.com.au> NNTP-Posting-Host: dhcp83.dhcp.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: munin.nbi.dk 1089904177 3957 172.24.5.83 (15 Jul 2004 15:09:37 GMT) X-Complaints-To: sparre@munin.nbi.dk NNTP-Posting-Date: Thu, 15 Jul 2004 15:09:37 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:2186 Date: 2004-07-15T17:09:37+02:00 List-Id: 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.