comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!do
Subject: Re: SunAda Return Codes
Date: 10 Aug 93 13:19:44 GMT	[thread overview]
Message-ID: <1993Aug10.071944.10852@hellgate.utah.edu> (raw)

In article <1993Aug9.131800.1757@news.eng.convex.com> pelakh@convex.com (Boris 
Pelakh) writes:
>In article <245b35$3r7@frigate.doc.ic.ac.uk> ajy@doc.ic.ac.uk (Andrew Young) w
rites:
>>How does a SunAda program report a return code to Unix?
>
>All you have to do is make your main a function returning integer instead of 
>a procedure, and then RETURN the proper code.

Please note, return values are implementation dependent, and are not defined
anywhere in the LRM.  Making the top-level subprogram a funtion returning an
integer is one solution the compiler writer may choose.  Or it may be included
in a OS isterface package.  I think the POSIX binding do this.

WRT the form of the top-level subprogram, the compiler must at least be able
to handle a procedure with no parameters.  Anything else is at the compiler
writer's discresion.

-- 
Mark Atwood                  | My school and employer have too many problems
matwood@peruvian.cs.utah.edu | without being blamed for mine.

             reply	other threads:[~1993-08-10 13:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-10 13:19 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!do [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-09 16:56 SunAda Return Codes Paul Durbin
1993-08-09 13:18 agate!spool.mu.edu!sol.ctr.columbia.edu!news.kei.com!news.oc.com!convex!p
1993-08-09 11:06 Andrew Young
replies disabled

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