From: stt@dsd.camb.inmet.com (Tucker Taft)
Subject: Re: Modulus and Remainder operations (Was Re: Help with a bit of C code)
Date: Sat, 15 Oct 1994 17:35:17 GMT
Date: 1994-10-15T17:35:17+00:00 [thread overview]
Message-ID: <Cxq66t.4xs@inmet.camb.inmet.com> (raw)
In-Reply-To: hbakerCxo6GM.KLs@netcom.com
In article <hbakerCxo6GM.KLs@netcom.com>,
Henry G. Baker <hbaker@netcom.com> wrote:
> ... the definer of [a limited] type has lost control of the type.
>In article <1994Oct13.092135@di.epfl.ch>
>Magnus.Kempe@di.epfl.ch (Magnus Kempe) writes:
>>Henry, please read RM9X 6.2(4-10). The following declaration ensures that
>>parameters of type T will always be passed by reference:
>>
>>package P is
>> type T is limited private;
>>private
>> type T is limited record ... end record; -- NOTE: "limited"
>>end P;
>> ...
>>Your problem is SOLVED In Ada 9X.
>
>For _most_, but not _all_, limited types. ...
Not all limited types are used for the same purpose.
In Ada 9X, the programmer decides whether pass-by-copy,
pass-by-reference, or pass-by-most-efficient-route is appropriate.
That is what programmers are supposed to do. It seems inappropriate
for the language designer to make these decisions for the programmer.
The language should provide the building blocks. The programmer gets
to stack them up ;-).
> Henry Baker
-Tucker Taft stt@inmet.com
next prev parent reply other threads:[~1994-10-15 17:35 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-09-27 14:40 Modulus and Remainder operations (Was Re: Help with a bit of C code) David A. Cobb
1994-09-28 13:56 ` Robert Dewar
1994-09-29 9:04 ` Christopher Costello
1994-09-29 14:34 ` Norman H. Cohen
[not found] ` <1994Oct7.225248.6208@nosc.mil>
[not found] ` <1994Oct10.084630.19894@sei.cmu.edu>
[not found] ` <37bof4$ljl@gnat.cs.nyu.edu>
[not found] ` <37cigq$6e0@felix.seas.gwu.edu>
1994-10-11 14:42 ` Norman H. Cohen
[not found] ` <hbakerCxFK2p.4wp@netcom.com>
[not found] ` <1994Oct11.161048.1058@nosc.mil>
1994-10-11 20:06 ` Norman H. Cohen
1994-10-13 1:51 ` Henry G. Baker
1994-10-13 8:27 ` Magnus Kempe
1994-10-13 12:30 ` Robert Dewar
1994-10-14 15:45 ` Henry G. Baker
1994-10-14 22:11 ` Robert Dewar
1994-10-15 17:35 ` Tucker Taft [this message]
1994-10-13 10:38 ` Tucker Taft
1994-10-13 21:34 ` Norman H. Cohen
1994-10-14 15:39 ` Henry G. Baker
1994-10-14 22:56 ` David Weller
1994-10-16 1:25 ` Henry G. Baker
1994-10-13 18:13 ` Charles H. Sampson
1994-10-13 16:56 ` Robert I. Eachus
1994-10-13 20:59 ` Robert Dewar
1994-10-13 23:44 ` Bob Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox