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 From: "zork" Newsgroups: comp.lang.ada References: <40f684a8@dnews.tpgi.com.au> Subject: Re: questions from a newbie Date: Fri, 16 Jul 2004 01:52:16 +1000 Organization: - X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 220.245.100.34 X-Original-NNTP-Posting-Host: 220.245.100.34 Message-ID: <40f6a834$1@dnews.tpgi.com.au> X-Trace: dnews.tpgi.com.au!tpg.com.au 1089906740 220.245.100.34 (16 Jul 2004 01:52:20 +1000) Path: g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2.news.jippii.net!feeder1.news.jippii.net!news.net.hanse.com!nntp.gblx.net!nntp3.phx1!dnews.tpgi.com.au!tpg.com.au!not-for-mail Xref: g2news1.google.com comp.lang.ada:2187 Date: 2004-07-16T01:52:16+10:00 List-Id: Thanks everyone for the insight. Much appreciated. Im liking ada. Previously programmed in c++ and java. cheers, zork "Jacob Sparre Andersen" wrote in message news:pl3c3tcnny.fsf@sparre.crs4.it... > 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.