From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dbf2052c2a878539 X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: access-to-constant dispatching params Date: 2000/05/09 Message-ID: <391845CE.256C3D93@averstar.com>#1/1 X-Deja-AN: 621187758 Content-Transfer-Encoding: 7bit References: <8f5t2r$g0k$1@nnrp1.deja.com> <391722DD.1F26622B@averstar.com> <8f8flg$cj7$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@inmet2.burl.averstar.com X-Trace: inmet2.burl.averstar.com 957892047 16350 141.199.8.164 (9 May 2000 17:07:27 GMT) Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 NNTP-Posting-Date: 9 May 2000 17:07:27 GMT Newsgroups: comp.lang.ada Date: 2000-05-09T17:07:27+00:00 List-Id: don_harrison@my-deja.com wrote: > > Tucker Taft wrote: > > m_cubed@my-deja.com wrote: > > > > > > Ada provides access-to-variable dispatching > > > parameters. > > [..] > > > > What it doesn't seem to provide is > > > access-to-constant dispatching parameters. > > > > This is one thing being considered for Ada 0X. > > > > However, as someone else suggested, plain old "IN" parameters > > pretty much do the job and are preferable in certain ways. > > In what ways do you consider in-parameters preferable? IN parameters would be preferable to access-to-constant for most non-dispatching cases, because they are more flexible, allowing passing of non-aliased objects, the result of calling a function, an aggregate or a literal, etc. For dispatching cases, the two are quite similar, and choosing between them depends on whether most callers are dealing with access values or objects. > > Don Harrison -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Commercial Division, AverStar (formerly Intermetrics) (http://www.averstar.com/services/IT_consulting.html) Burlington, MA USA