comp.lang.ada
 help / color / mirror / Atom feed
From: "zork" <zork@nospam.com>
Subject: Re: questions from a newbie
Date: Fri, 16 Jul 2004 01:52:16 +1000
Date: 2004-07-16T01:52:16+10:00	[thread overview]
Message-ID: <40f6a834$1@dnews.tpgi.com.au> (raw)
In-Reply-To: pl3c3tcnny.fsf@sparre.crs4.it

Thanks everyone for the insight. Much appreciated. Im liking ada. Previously
programmed in c++ and java.

cheers,
zork


"Jacob Sparre Andersen" <sparre@nbi.dk> 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.





      reply	other threads:[~2004-07-15 15:52 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
2004-07-15 15:52   ` zork [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox