comp.lang.ada
 help / color / mirror / Atom feed
From: emery@mitre-bedford.arpa  (David Emery)
Subject: Re: gethostname (Was: SunAda question)
Date: 21 Jul 93 14:56:58 GMT	[thread overview]
Message-ID: <EMERY.93Jul21095658@goldfinger.mitre.org> (raw)

>Frankly, I'm offended!  This completely violates everything that I've
>been taught about Ada functions! The actual parameters of a function
>should not be modified.  A function should only return one value.

The Verdix package "Unix" is what is called a "thin binding", in that
it simply recasts an existing C operation, semantics and all, in Ada
syntax.  

Your better solution is to use the POSIX/Ada binding.  See
"POSIX.System_Name" and "POSIX.Host_Name" functions.

				dave

             reply	other threads:[~1993-07-21 14:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-21 14:56 David Emery [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-07-21 15:26 gethostname (Was: SunAda question) cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.
1993-07-21 10:27 Karl A. Nyberg
replies disabled

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