From: jsa@alexandria.organon.com (Jon S Anthony)
Subject: Re: Function result
Date: 1997/06/27
Date: 1997-06-27T00:00:00+00:00 [thread overview]
Message-ID: <JSA.97Jun27152328@alexandria.organon.com> (raw)
In-Reply-To: 5os5r8$4ud@netline.jpl.nasa.gov
In article <5os5r8$4ud@netline.jpl.nasa.gov> vsnyder@gyre.jpl.nasa.gov (Van Snyder) writes:
> pass the address where the function result is to land as a "hidden argument."
> In this way, the syntactic device of assigning to the function result
> _really_is_ assigning directly to the function result -- no extra copying
> involved.
>
> By the way, this would eliminate the problem about returning a limited
> type in Ada.
???? What problem is that???
> 1. The client is expected to supply the address where the function result
> is desired as a "hidden argument".
Sounds like a procedure with an out parameter...
> 3. Since there's no copying going on outside the function, it would be OK
> to allow returning a limited type.
There's no problem in returning a limited type. I do it all the time.
What do mean here???
> 4. In the function, the result would be materialized by storing into the
> result variable, not by mentioning the value in a "return" statement.
Well, this _WOULD_ seem to cause a problem with returning limited
types, as it would require assignment.
/Jon
--
Jon Anthony
OMI, Belmont, MA 02178
617.484.3383
"Nightmares - Ha! The way my life's been going lately,
Who'd notice?" -- Londo Mollari
next prev parent reply other threads:[~1997-06-27 0:00 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-11 0:00 GOTO considered necessary (reworked) Samuel Mize
1997-06-11 0:00 ` Bryce Bardin
1997-06-12 0:00 ` Anonymous
1997-06-12 0:00 ` John G. Volan
1997-06-16 0:00 ` Anonymous
1997-06-12 0:00 ` Robert Dewar
1997-06-12 0:00 ` John G. Volan
1997-06-13 0:00 ` Robert A Duff
1997-06-16 0:00 ` John G. Volan
1997-06-17 0:00 ` Robert I. Eachus
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-18 0:00 ` Spam Hater
1997-06-20 0:00 ` Robert Dewar
1997-06-21 0:00 ` Robert A Duff
1997-06-21 0:00 ` Robert Dewar
1997-06-20 0:00 ` Robert Dewar
1997-06-25 0:00 ` Wolfgang Gellerich
1997-06-25 0:00 ` Samuel T. Harris
1997-06-25 0:00 ` Michael F Brenner
1997-06-26 0:00 ` Wolfgang Gellerich
1997-06-19 0:00 ` Karel Th�nissen
1997-06-19 0:00 ` Karel Th�nissen
1997-06-23 0:00 ` John G. Volan
1997-06-23 0:00 ` Spam Hater
1997-06-23 0:00 ` Robert Dewar
1997-06-24 0:00 ` Brian Rogoff
1997-06-25 0:00 ` Featuritis not always bad (was re: GOTO considered necessary) Karel Th�nissen
1997-06-26 0:00 ` Robert Dewar
1997-06-26 0:00 ` Karel Th�nissen
1997-06-25 0:00 ` GOTO considered necessary (reworked) Karel Th�nissen
1997-06-23 0:00 ` John G. Volan
1997-06-17 0:00 ` Robert A Duff
1997-06-25 0:00 ` Van Snyder
1997-07-21 0:00 ` Shmuel (Seymour J.) Metz
1997-06-12 0:00 ` Michael F Brenner
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-20 0:00 ` Robert Dewar
1997-06-21 0:00 ` Robert A Duff
1997-06-21 0:00 ` Robert Dewar
1997-06-13 0:00 ` Robert A Duff
1997-06-14 0:00 ` Robert Dewar
1997-06-16 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Spam Hater
1997-06-16 0:00 ` Robert A Duff
1997-06-17 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert A Duff
1997-06-19 0:00 ` John Herro
1997-06-25 0:00 ` Function result Van Snyder
1997-06-27 0:00 ` Robert Dewar
1997-06-27 0:00 ` Jon S Anthony [this message]
1997-06-20 0:00 ` GOTO considered necessary (reworked) Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-19 0:00 ` Spam Hater
1997-06-14 0:00 ` Samuel Mize
1997-06-14 0:00 ` Matthew Heaney
1997-06-14 0:00 ` Samuel Mize
1997-06-16 0:00 ` Anonymous
1997-06-16 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox