comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Problems with String processing
Date: Sat, 23 Oct 2010 16:59:06 -0700
Date: 2010-10-23T16:59:06-07:00	[thread overview]
Message-ID: <i9vt69$56b$1@tornado.tornevall.net> (raw)
In-Reply-To: <8igu5kF70sU1@mid.individual.net>

On 10/23/2010 01:16 PM, George wrote:
>
> begin
> -- Ada.Command_Line.Argument_Count is "0" if
> -- a) Command_Line.Argument_Count is not implemented (Compiler, OS)
> -- b) no arguments given
> if Ada.Command_Line.Argument_Count>  0 then
>     for counter in 1..Ada.Command_Line.Argument_Count loop

Unrelated to your question, which others have answered, this "if" is not needed. 
The loop will execute zero times if Argument_Count < 1.

-- 
Jeff Carter
"Unix and C are the ultimate computer viruses."
Richard Gabriel
99



      parent reply	other threads:[~2010-10-23 23:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-23 20:16 Problems with String processing George
2010-10-23 20:24 ` Niklas Holsti
2010-10-23 20:25 ` Dmitry A. Kazakov
2010-10-23 20:43 ` George
2010-10-23 23:59 ` Jeffrey Carter [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