From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: ML-like alternatives to out parameters for functions
Date: 17 Mar 2003 16:47:48 -0500
Date: 2003-03-17T22:01:35+00:00 [thread overview]
Message-ID: <usmtlpsvv.fsf@nasa.gov> (raw)
In-Reply-To: m3of49iqon.fsf@valhal.vikingnet
Mark Lorenzen <mark.lorenzen@ofir.dk> writes:
> An out parameter can be used when the validity of the result of
> evaluating a function is not always well-defined. For example:
>
> function Calculate (Argument : in AT; Result_Valid : out Boolean) return RT;
The prefered Ada solution for this particular case is to raise an
exception for errors, not return a status variable (or discriminant).
--
-- Stephe
next prev parent reply other threads:[~2003-03-17 21:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-17 22:17 ML-like alternatives to out parameters for functions Mark Lorenzen
2003-03-17 21:47 ` Stephen Leake [this message]
2003-03-17 23:34 ` Mark Lorenzen
2003-03-18 3:54 ` John R. Strohm
2003-03-18 8:59 ` Preben Randhol
2003-03-18 21:09 ` tmoran
2003-03-18 17:04 ` Frank J. Lhota
2003-03-18 18:52 ` Mark Lorenzen
2003-03-18 19:16 ` Frank J. Lhota
2003-04-01 3:39 ` Robert I. Eachus
2003-04-01 14:51 ` Frank J. Lhota
2003-03-18 8:37 ` Dmitry A. Kazakov
2003-03-18 9:07 ` Preben Randhol
2003-03-19 7:31 ` Mark Biggar
-- strict thread matches above, loose matches on Subject: below --
2003-04-02 0:23 Alexandre E. Kopilovitch
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox