comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: (novice Q) Set_Exit_Status and typing
Date: 1999/08/16
Date: 1999-08-16T00:00:00+00:00	[thread overview]
Message-ID: <37b8137f@news1.us.ibm.net> (raw)
In-Reply-To: 5344E86880B8D247.560C490A62D52714.288F4D2B2373A471@lp.airnews. net

In article 
<5344E86880B8D247.560C490A62D52714.288F4D2B2373A471@lp.airnews.net> , Ray
<crwhite2@airmail6.net>  wrote:

> Using Gnat and win95 I am returning the number of command line
> parameters to the OS.
>
> I have tried Set_Exit_Status(Argument_Count) with the expected error.

I assume you mean by "expected error" the fact that there is a type
mismatch.

Yes, that's what will happen.  But what's wrong with a type cast?

  Set_Exit_Status (Exit_Status (Argument_Count));


> I did write working code, and the Question is, how can I avoid the M :=
> M + 1?

By using a type cast.

--
It is impossible to feel great confidence in a negative theory which has
always rested its main support on the weak points of its opponent.

Joseph Needham, "A Mechanistic Criticism of Vitalism"




       reply	other threads:[~1999-08-16  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5344E86880B8D247.560C490A62D52714.288F4D2B2373A471@lp.airnews. net>
1999-08-16  0:00 ` Matthew Heaney [this message]
1999-08-16  0:00   ` (novice Q) Set_Exit_Status and typing Ray
1999-08-17  0:00   ` Keith Thompson
1999-08-18  0:00   ` Robert Dewar
1999-08-15  0:00 Ray
replies disabled

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